FPDF error: Unable to find "startxref" keyword

Mr.Web picture Mr.Web · Aug 28, 2015 · Viewed 13.3k times · Source

I have an app that renders PDFs with FPDF.

It was working fine and for some reasons I had to change the PDF files and now I get this error:

Unable to find "startxref" keyword

enter image description here

If I restore the original files, the same error happens.

How do I fix this error?

Answer

Jan Slabon picture Jan Slabon · Aug 31, 2015

You simply have to pass a local path instead of an URI to setSourceFile().