If you need to add a barcode to your document, you can do so by embedding an image (for specific instructions on embedding an image in your template, use the help articles here)
To create the barcode image URL, we're going to use a free service at https://www.barcodesinc.com/generator/index.php
On that page you can build a barcode, then after you click "Generate Barcode", you can grab a "link" to the bar code image:
In the Link (the URL to the barcode image), we can use merge fields for the value of our barcode like this:
https://www.barcodesinc.com/generator/image.php?code={$TheCode}&style=197&type=C128B&width=167&height=50&xres=1&font=3
The last step in the process is to use this image URL and embed the image in our template. Again, for specific instructions on how to embed an image in your template, please use these help articles.
Comments
Hey Jeremy, this looks awesome. A little confused about the relation to barcoesinc. Do we have to create the barcode through barecodesinc.com, or does the link with {$TheCode} do it for us?
Do you have an example of how the document template should look for this to be handled correctly? I have experience with using images, but only with images I'm passing directly to webmerge. Not entirely sure how to format this when the image is a url
Hello Markwood,
I am happy to help you with your questions! You will first want to go to https://www.barcodesinc.com/generator/index.php to create the barcode. After you build your barcode, click "Generate Barcode". You will want to use merge fields for the value of our barcode like this:
https://www.barcodesinc.com/generator/image.php?code={$TheCode}&style=197&type=C128B&width=167&height=50&xres=1&font=3
For instructions on how to embed the image using a URL, it depends on the type of document template you are using. Here are links to the support articles:
For a Fillable PDF: https://support.webmerge.me/hc/en-us/articles/206526966-Embed-Images-Signatures-in-a-Fillable-PDF
For a build- your- own PDF: https://support.webmerge.me/hc/en-us/articles/206526876-Embed-Images-in-Your-Build-Your-Own-PDF
For a Word/ Excel/ Powerpoint file: https://support.webmerge.me/hc/en-us/articles/206526946-Embed-Images-Signatures-in-Word-Excel-PowerPoint
Using a Document Builder: https://support.webmerge.me/hc/en-us/articles/206526916-Using-the-Document-Builder-Build-Your-Own-
Please let us know if you have further questions!
Hey Christina, is this functionality still working?
Having a super tough time with this. Ever attempt leaves me with an image with a red x.
Have tried this a ton of ways, but will mention the latest way: Created a standard image merge (put in a sample image that I generated through barcodesinc.com, and put in the reference {$barcode|image:1:png} right after).
After trying different ways to concatenate the merge field in the URL, I decided to test the most basic example. Using the "Test" screen, I first sent the URL of the barcode image through the {$barcode} field (both with random text, and copying the direct image link that you have listed in this article), both came up with a red x.
Thinking my document was formatted incorrectly, I then just sent the URL of a randomly found .png file, and it merged just fine.
Any idea what could be happening here?
Please sign in to leave a comment.