2

I've been trying to make PHP program to autofill PDF files using data from database using FPDF, but I get this error

FPDF-Merge Error: Fast Web View mode is not supported

I've been looking for a free program that doesn't leave watermarks or modify the PDF that removes the Fast Web View, but couldn't find one. Is there any way that I could disable it?

Mateusz Bartkowski
  • 709
  • 1
  • 12
  • 29

1 Answers1

5

All valid linearized (Fast Web View) PDFs are also valid un-linearized PDFs, so it's hard to see why FPDF would complain - the worst it could do is produce an output file which is not linearized.

Our cpdf tool can remove linearization easily:

cpdf in.pdf -o out.pdf

ought to do it.

johnwhitington
  • 2,308
  • 1
  • 16
  • 18
  • 1
    +1 for the validity explanation. Refusing to operate on a pdf merely because of linearization is bad. – mkl Sep 12 '13 at 05:29
  • Thanks, that helped! But now I got an error FilterFlateDecode: invalid stream data. (I am trying to fill PDF form automatically from PDF form using FPDM) It has something to do with this code: http://pastebin.com/qiEB9BWs I don't understand why data is set to null in this, but I am getting to a poing of giving up fpdm and looking for something better... Any ideas? – Mateusz Bartkowski Sep 12 '13 at 13:17
  • I explained my problem further in a new question [link](http://stackoverflow.com/questions/18766045/php-pdf-form-filling-using-fpdm-gives-error-filterflatedecode-invalid-stream-da). Thank you again for helping me solve this problem. – Mateusz Bartkowski Sep 12 '13 at 13:48