How to settle down the problem?
Apart from a copy of FPDF, FPDI doesn’t require any special PHP extensions. For encrypting PDF files FDPI with FDPF and FDPI-protection package is required. Directly coming to the point, FPDI free pdf-parser can “only” handle PDF documents up to PDF version 1.4.
I am running the following code and giving me this error : FPDF error: This document (testcopy.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI. I used another pdf named test.pdf and that works fine but it is giving me error in testcopy.pdf. I think this is parser problem.
This exported PDF file is compatible with PDFMerger I used to use Ghostscript to do this but this does indeed work, way more convenient. Thanks! Worked for me, thanks so much! The file needs to be PDF 1.4 (Acrobat 5) or lower. If you have Adobe Acrobat Pro you can change this with Document->Decrease File Size.
"It can be overcome by re-saving the template and change compression type. In Adobe Acrobat Pro go to File->Save As->Optimised PDF-> Popup left list - Clean Up, Object Compression Options -> Change to "Compress document structure" -> OK to save"
When making your template, export it using the "PDF-A - 1a" export setting. (In Acrobat Pro you may SAVE AS with this setting)
More details: (MAC OSX but shoudl work for WIN as well) Open your pdf in acrobat pro. Save as -> MORE OPTIONS -> PDF/A in the popup screen, press settings
In this screen make sure the option "CREATE PDF/A-1a according to the profile bla bla" and select CONVERT TO PDF/A-1a (sRGB) printing conditions: sRGB apply corrections = checked
now save and finish.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With