Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find startxref keyword #17

Closed
vincentcastagna opened this issue May 4, 2017 · 5 comments
Closed

Unable to find startxref keyword #17

vincentcastagna opened this issue May 4, 2017 · 5 comments

Comments

@vincentcastagna
Copy link

Hello,

Im on a symfony project. Using a bundle to merge pdf => https://packagist.org/packages/rguedes/pdfmerger

I got this error, nothing changed, I got this error since one week ... what am I supposed to understand with this error ? Package error ? Pdf path error ?

Thanks :)

@JanSlabon
Copy link
Member

The "startxref" keyword cannot be found in the PDF file. It's simply corrupted, that's all. Feel free to share the PDF in question.

@vincentcastagna
Copy link
Author

CGS.pdf

Here is the pdf (test case ofc). I do understand that it can be corrupted, but how ? It never changed and it was working 2 weeks ago ... Thanks btw for your answer

@JanSlabon
Copy link
Member

This document is not corrupted. You should check the file directly in your system. At least FPDI is open source and you can also debug in the source code. The script doesn't do anything more than opening the file and search for a keyword starting at the end of the file.

@JanSlabon
Copy link
Member

Can this issue be closed or do you have additional information?

@vincentcastagna
Copy link
Author

Hello,

Sorry for my late answer. That was an issue in my code ... was exploding the base64 of the pdf at the wrong index, and so was displaying this error.

Thanks for your answer. Closing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants