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

Editing title and author blows up file size from 2 MB to 14 MB #23

Open
melyux opened this issue Jul 19, 2023 · 4 comments
Open

Editing title and author blows up file size from 2 MB to 14 MB #23

melyux opened this issue Jul 19, 2023 · 4 comments

Comments

@melyux
Copy link

melyux commented Jul 19, 2023

I used the app to simply add a title and an author to a PDF file. Upon saving, the file size had changed and become much larger. Why is the content of the PDF changing when it's supposed to only be changing the metadata?

@zaro
Copy link
Owner

zaro commented Jul 20, 2023

@melyux It is not supposed to change. Is it possible that you provide a file with which this occurs ?

@melyux
Copy link
Author

melyux commented Jul 20, 2023

@zaro Sure, I can send it to the email on your blog

@zaro
Copy link
Owner

zaro commented Jul 26, 2023

@melyux I spent almost all day trying to pinpoint where this problem comes. But definitely it's something related to Apache PDFBox.

The problem is even if I find what causes it I am not sure how to approach fixing it. The version of PDFBox the editor uses is really old 1.8, but newer versions support only the newer PDF/A spec, and are not usable for generic metadata editing.

Will keep you updated if I find something more.

@melyux
Copy link
Author

melyux commented Jul 27, 2023

Bless you. What about using exiftool as the internal tool?

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