Go Back

PDF documents

We are looking for a method to write data into a PDF file. Can anyone recommend a product they have used with Synergy routines to do this?

6 Answers
0   | Posted by Tony Rivers to Synergy DBL on 11/26/2018 3:58 PM
Bill Hawkins
On Windows, I have had success using the HARU PDF dlls and in conjunction with the wrapper routines in the Synergex CodeExchange. 
t's biggest limitation (for me) is that it cannot merge two PDF files together, but that's easy to achieve using the PDFtk  (https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/)

11/29/2018 11:12 PM   0  
Steve Ives
I'm unclear as to your requirement. Are you asking how to create a PDF file from Synergy? If so check out the Synergy PDF API.

Or are you asking if it is possible to ADD data to an existing PDF file? If that is the case then as Bill mentioned, it is possible to merge two PDF files together, but I'm not aware of any way that you can add specific data in specific locations, without writing out the whole document.

Here's an example of a form created with the Synergy PDF API.

11/30/2018 12:06 AM   0  
Tony Rivers
It would be adding data to an existing PDF and saving it as a new PDF. This is for tax filing. They is an existing PDF tax form and we need to read it and add tax data to it and save it as a new PDF so it can be submitted to the tax web site. Hope that explains it well enough. We wouldn't be merging two PDF files however perhaps we could do it that way.

11/30/2018 3:28 PM   0  
Steve Ives
IN that case the only way that I am aware of to do that is to follow Bill's earlier suggestion, using the "form" PDF as a background for a new document, and then figuring out the positions to draw the data onto the composite document. Not sure how this works if its a multi-page form though, that may need some figuring out.

11/30/2018 3:55 PM   0  
Jeff Gill
You might want to check out this Foxit API we used it in our Delphi environment as well as directly from our Linux servers from our synergy application and it has all of  the functionality you will need and more.

12/7/2018 1:15 AM   0  
Russ Judge
If you are using .NET, there is also PDFSharp (http://www.pdfsharp.net), which I've used and can be found on Nuget for free.

3/8/2019 2:18 PM   0  
Please log in to comment or answer this question.