phppdffpdflinearization

Disable Fast Web View on a PDF file


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?


Solution

  • 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.