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 edit PDF file metadata after cleaning it with metadata-cleaner #62

Open
Froggy232 opened this issue Dec 27, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@Froggy232
Copy link

Hi,
I don't know if it's a problem with paperclip or metadata cleaner, so I will simply post a bug report on each project. The metadata-cleaner bug report is visible here : https://gitlab.com/rmnvgr/metadata-cleaner/-/issues/48
So, after cleaning metadata of a pdf file with metadata-cleaner, I can't modify it with paperclip, or more accurately I can modify them but can't save the file.
When I click on save, everything seems to work but nothing happen, when I reopen the file in paper clip or another software, every metadata fields are blank.
If I try to launch it from a terminal, there is nothing particular in the log, just two entry about GTK that seems totally unrelated as they appear before I save the document.
Thanks for your work, except from this very small problem Paper Clip works wonderfully, it's a very nice software!

@Diego-Ivan
Copy link
Owner

Thanks for the report! I tested this and could successfully edit some PDF documents, but apparently it has to be saved twice by editing different fields, as the metadata cleaner removes the document's metadata dictionary and Paper Clip expects that every document has one, and when it does not find it, it tries to restore it but can't save metadata while doing so. After saving two times, the fields should be modified accordingly. I'm guessing all of this is expected behaviour, as the Metadata Cleaner tries to remove any metadata trace and Paper Clip does the opposite.

I will try to implement a workaround to prevent this edge case from happening.

@Diego-Ivan Diego-Ivan added the bug Something isn't working label Dec 28, 2023
@Froggy232
Copy link
Author

Nice, thanks you a lot!
I will proceed as you told in the meantime and wait for your fix, thanks again for your software, it works incredibly well except for that very minor problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants