Disable Fast Web View on a PDF file

2019-04-16 05:02发布

问题:

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?

回答1:

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.