diego-ivan / paper-clip Goto Github PK
View Code? Open in Web Editor NEWEdit PDF document metadata
Home Page: https://apps.gnome.org/app/io.github.diegoivan.pdf_metadata_editor/
License: GNU General Public License v3.0
Edit PDF document metadata
Home Page: https://apps.gnome.org/app/io.github.diegoivan.pdf_metadata_editor/
License: GNU General Public License v3.0
I've exported a document with LibreOffice and selected PDF/A mode (ISO). It generates PDF version 1.6 file.
Then used Paper Clip (v3.2) and metadata edits aren't reflected on some PDF viewers (such as Evince).
Would editing the table of contents of a PDF fall into the scope of this project? There don't seem to be any easy tools for this that are ported for modern Linux desktop.
This fields are currently just edited as simple text, but the format should follow the Agent Name Data Type from the Adobe XMP Specification. Paper Clip should provide a way to edit this fields and format them accordingly
The serialized Agent Name data type contains:
Which should be serialized to: Organization Software_Name Version (token;token...)
Parsing may be tricky as some documents do not follow the specification. Here are some examples that do, and some that don't:
Compliant:
Adobe PDF Library 7.0
Adobe Acrobat 9.0 (Mac OS X 10.5)
GPL Ghostscript 9.26
Adobe Acrobat 9.55 Paper Capture Plug-in
Microsoft® PowerPoint® para Microsoft 365
- (although is missing version and tokens)Non-Compliant
macOS Versión 14.0 (Compilación 23A344) Quartz PDFContext
- Software name is after version and tokens.Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 OPR/94.0.0.0 (Edition std-1)
- I won't even try to deserialize this.Skia/PDF m108
- Missing organization nameCurrently, the app is using libpoppler, which is quite a large library that we are using very little. We can either replace it with a more lightweight library, or use it to render the first page of the document to use as the icon in the document view.
Please add attached updated Croatian and German .po
translation files.
pdf-metadata-editor.pot
file (POT-Creation-Date: 2024-01-27 21:42-0600).Due to my old MacOS and Firefox versions I'm not able to send merge requests via GitHub :-((
hr-de.zip
Thumbnails have received some improvements since they were introduced, nonetheless, there are certainly some important considerations:
The .doap-file needs to have the same name as the repo: Paper-Clip.doap
While adding tags to a specific PDF, it is quite frustrating to have to click on the “+” with the mouse to add a new tag, rather than simply pressing the return button.
Hi, there are two case of "PDF Metadata Editor" usage
https://github.com/Diego-Ivan/Paper-Clip/blob/main/src/meson.build#L26
https://github.com/Diego-Ivan/Paper-Clip/blob/main/src/window.ui#L162
And 9 case of Paper Clip usage.
https://github.com/Diego-Ivan/Paper-Clip/blob/main/README.md?plain=1#L3
https://github.com/Diego-Ivan/Paper-Clip/blob/main/README.md?plain=1#L33
https://github.com/Diego-Ivan/Paper-Clip/blob/main/README.md?plain=1#L37
https://github.com/Diego-Ivan/Paper-Clip/blob/main/README.md?plain=1#L41
https://github.com/Diego-Ivan/Paper-Clip/blob/main/data/io.github.diegoivan.pdf_metadata_editor.appdata.xml.in#L7
https://github.com/Diego-Ivan/Paper-Clip/blob/main/data/io.github.diegoivan.pdf_metadata_editor.desktop.in#L2
https://github.com/Diego-Ivan/Paper-Clip/blob/main/pdf-metadata-editor.doap#L8
https://github.com/Diego-Ivan/Paper-Clip/blob/main/src/application.vala#L53
https://github.com/Diego-Ivan/Paper-Clip/blob/main/src/window.ui#L10
IMHO, you may choice one of them and focus on it.
Some strings in the .pot file seem to be in turkish instead of English, which complicates translating..
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!
At present, it's not possible to edit PDF metadata by opening it with the application directly: the application must first be opened and the file dropped into it / opened from the interface.
It would be a useful time-saver to have the option "Open file with [Paper Clip]" directly from the file manager..
Can you verify the flatpak so people who find it through Flathub know it's official? Here's a link to Flathub's verification documentation for developers https://docs.flathub.org/docs/for-app-authors/verification/
@Diego-Ivan Could you assist me in adding Hindi translation to this project. I don't have knowledge to open merge request.
I have uploaded it as a zip file here.
Paper Clip.zip
Will really appreciate your help.
Hey,
when I load an encrypted PDF it will just instantly crash.
Thank you! :)
Best regards!
Hi!
It would be nice if you could add the words "PDF", "Metadata" and "Editor" keywords to the .desktop file so that we can find the app when we search for "PDF" or "Metadata" etc.
Right now, if I search for "PDF", the app does not show up.
If a PDF has the XMP tag dc:title=Foo
, then Firefox (on Windows and Linux) as well as the GNOME Document Viewer/Evince (on Linux) have "Foo" as window title.
It would be great if Paper Clip would display and allow editing of this value.
Documentation about the XMP Dublin Core namespace:
One can also set this value with exiftool
:
exiftool -xmp-dc:title="Foo" document.pdf
Screenshot of Firefox:
Screenshot of Evince:
Fedora 39 KDE Spin, Wayland
Hi, I need to change the Author to multiple of files (dozen of them), It would be nice to have the ability to do the editing on multiple files at once.
Hi! I'm from the GNOME App Icon Design group. 😃 I'm here because you have requested inclusion in GNOME Circle for PDF Metadata Editor. A reviewer asked for help with icon design for a couple of apps, yours included.
The current icon follows the GNOME guidelines, which is great! However, it has some room for improvement:
shift + 3
in Inkscape)Based on these points, I have some improvements I'd like to make to the icon:
In addition to this, I have a suggestion regarding the name of the app, as the current one is very generic. The new icon metaphor would allow for the name "Paper Clip", which is more distinct than the current name, and more in line with the names of other third-party GNOME apps. The use case of the app could be signified through the app description anyways ("Edit the metadata of PDF documents").
I'll start designing now, and open a merge request when I'm done. If you want to do this yourself, feel free to interrupt me / close the merge request. If you have any further questions about this icon / icon design in general, you can join the GNOME App Icon Design chat room on Matrix. 😄
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.