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

Add damaged file #20

Open
MartinThoma opened this issue Feb 10, 2023 · 2 comments
Open

Add damaged file #20

MartinThoma opened this issue Feb 10, 2023 · 2 comments

Comments

@MartinThoma
Copy link
Member

See py-pdf/pypdf#485

@stefan6419846
Copy link
Collaborator

There are tons of invalid/damaged PDF files in the wild. For this specific issue: Generating such a file is trivial with https://github.com/py-pdf/sample-files/blob/main/002-trivial-libre-office-writer/002-trivial-libre-office-writer.pdf for example - just remove the startxref entry, which yields you a file like 002-trivial-libre-office-writer_without-startxref.pdf or broken.pdf (simpler document with some manual cleanup, generated by LibreOffice Writer as well).

@stefan6419846
Copy link
Collaborator

Just for the record: Adding a damaged file does not seem supported within https://github.com/py-pdf/sample-files/blob/main/.github/workflows/json_consistency.py for now.

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