Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Populating a Barcode field in a PDF

Status
Not open for further replies.

powella

Programmer
Apr 5, 2005
20
US
We are using cfpdfform tag to populate a PDF. The goal will be to print these as certificates in coldfusion without needing to open them and print. In the PDF we have a barcode form field that we want to have populated. The obvious answer is to tie the value to another text field that holds the unique identifier. This seems to be script based and works great when filling the form by hand. cfpdfform seems to bypass scripts in the PDF. Our next attempt was to set the value so we tried
<cfpdfformparam name="Barcode" value="123456" >
This works kind of. Instead of the barcode (picture) the field will show the text "123456" (human readable not barcode).

We also tried adding script to the validation of the ID field and the "when print" event. These work great when a human opens the form and changes the field or clicks print
 
Are you using an absolute or relative path in displaying you image..

we had this problem about 2 years ago and we found that the path had to be absolute, it bombed or just didnt show if the path was relative.

HTH
 
The link to the PDF is absolute, like so
C:\PDFComps\Dec\blankform.pdf

The barcode field is a built in form field we have added with Acrobat 8 Pro.

The field appears to work just fine if you open the PDF and some validation script runs, but if you don't open it and don't cause the script to run the field won't be populated and there doesn't seem to be a way to do this in ColdFusion??
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top