Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FPDF error: This document (mine.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI [duplicate]

Tags:

php

pdf

How to settle down the problem?

like image 614
Helloe Avatar asked Mar 26 '11 08:03

Helloe


People also ask

Can FPDI free PDF- parser handle FPDF files?

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.

Why am I getting FPDF error in FPDI?

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.

Is it possible to export a PDF file with pdfmerger?

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.

How do I fix a PDF template that is too small?

"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"


1 Answers

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.

like image 183
renevdkooi Avatar answered Nov 06 '22 09:11

renevdkooi