Search code examples
phppdffpdf

Problem with FPDM in FPDF : FilterFlateDecode: invalid stream data


i have a problem with FPDF. When I want to use FPDM to merge a pdf with data from database, I face that Error

FilterFlateDecode: invalid stream data.

thats happen when i use a pdf that i create or edit with a pdf software .And thats how i want to use it : FPDM example.

Thank you


Solution

  • Will , Thank you guys . i found a solution .

    the solution is very easy : you need to create PDF using Adobe Acrobat but before Saving you work you need to uncheck Fast web view and Save as optimizes for Fast web view you'll find them in : Edit -> prefernces then search of Internet and uncheck "Fast web view" and search of Documents and uncheck "Save as optimizes for Fast web view" Now save it , Then go to cmd and ut this command : pdftk modele.pdf output modele2.pdf

    modele.pdf is your PDF file , modele2.pdf is the file with Modification just name it with any name you want. But you need to have been already installed PDFTK tool

    and now the file is ready to use .