![datalogics pdf toolkit xfa datalogics pdf toolkit xfa](https://www.datalogics.com/wp-content/uploads/2020/06/ebooks-192.png)
I never seen an example of XFDF or FDF inserting an image into the PDF. Then possibly use PDFTK to somehow merge a PDF that I have filled with data from my existing process with another PDF that simply has the barcode. And also, I can't see a way to build an image output.įrom my research it seems I might need to remove the existing "Paper Forms Barcode" control and add an image somehow to the PDF. Pdf417-js seems to get my close to building a PDF417 barcode, but it's client side. I can optionally remove the "Paper Forms Barcode" control and use any other control available. When I run PDFTK Server's form fill command to populate the PDF with the XFDF data I build server side, I believe the XFA (and hence any intelligence behind the "Paper Forms Barcode" control) is automatically removed from the resulting output PDF. When we fill this PDF form out with data manually, the XFA script embedded within the PDF automatically populates the "Paper Forms Barcode" control with the PDF417 barcode. The PDF "template" currently uses a Adobe Lifecycle "Paper Forms Barcode" control for the barcode. Also, this solution must work server side only. I can use any tool/technique within my technology stack (Nodejs/Javascript). I'm using PDFTK Server (JavaScript on the server calling out to a PDFTK.exe).
![datalogics pdf toolkit xfa datalogics pdf toolkit xfa](http://www.libraries.ucancode.net/control_component.gif)
I'm using full-stack JavaScript environment, where the Nodejs environment runs server side. Staying in the same workflow, I'd like to either use XFDF or FDF files to add a barcode to the PDF. I have a process in place where I populate a PDF "templates" with data using a XFDF file that I build server side. How can I add PDF417 2-D barcode (as an image) to a Acroform PDF?