Open ntrimg opened 2 years ago
Just to add to this:
I opened the template.pdf file in Acrobat, saved it under a different name, and this resulted in the same error message. So, is there a certain way the pdf needs to be saved?
You must save the PDF document in the Pro version of PDFTK ( https://www.pdflabs.com/tools/pdftk-pro/ )
Under Advanced settings you must put in Advanced Output Options: %PDFTK% %PDFIN% output %PDFOUT%
See screenshot on last post of this page: https://stackoverflow.com/questions/43535455/fpdf-merge-error-number-of-objects-22-differs-with-number-of-xrefs-23-some
Add PDF > Enable Advanced Output Options > Create PDF
I took an existing pdf with various fields, converted it in Acrobat so the fields will allow input, and then I tested it out. But I'm getting this error now: FPDF-Merge Error: Object streams are not supported
The test worked fine with the template.pdf that was provided in the code. And when I look at the template.pdf in Acrobat, I can't see what the difference between the two .pdfs are.