This content has been marked as final. Show 4 replies
I'm not sure you can using the FDF / PDF approach. I know that you definitely CAN do that with one of the following techniques:
1) <cf_pdfform> - custom tag from Ben Forta (also built-in functionality in CF8)
2) iText - Java library for creating / editing PDF's (its what CF 7 uses for some of its <cfdocument> functionality. check out this thread for some sample code:
Hope that helps!
Thanks for the tip - I love Ben Forta's tag!
this u get your pdf working? and does it suppress blank lines if necessary?
I was able to get Ben Forta's tag to work in CFMX, but I just did a simple test to make sure it was able to use supplied key/value pairs to fill in the form fields. It did and it correctly saved the new pdf file to the specified folder. It was pretty easy to install and to use.
When you mention suppressing blank lines, I suspect you are talking about a resulting FDF file. If that is the case, you do not have to worry about those issues with this tag, as you are not creating an FDF file. You are using a JAVA API to create the filled PDF.
Beside Ben Forta's tag, I also tried the iText approach and it worked quite well.