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

Support PDF files that do not begin with the magic bytes %PDF- #450

Closed
karthik-bashetty opened this issue Oct 9, 2024 · 3 comments
Closed

Comments

@karthik-bashetty
Copy link
Contributor

We have come across many PDF files created by our customers that do not start with %PDF- magic bytes. These can be opened in all the PDF readers that we have tried but govips fails to parse this. This issue is to add a fix for that by checking if the %PDF- is present in the first 1024 bytes of the file.

@karthik-bashetty karthik-bashetty changed the title Support PDF files that do not being with the magic bytes %PDF- Support PDF files that do not begin with the magic bytes %PDF- Oct 9, 2024
@karthik-bashetty
Copy link
Contributor Author

#451 Created a pull request for this issue.

@karthik-bashetty
Copy link
Contributor Author

pull request #451 has been merged to master.

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

4 participants
@karthik-bashetty and others