Giter Site home page Giter Site logo

diego-ivan / paper-clip Goto Github PK

View Code? Open in Web Editor NEW
45.0 45.0 18.0 881 KB

Edit PDF document metadata

Home Page: https://apps.gnome.org/app/io.github.diegoivan.pdf_metadata_editor/

License: GNU General Public License v3.0

Meson 4.56% Vala 92.30% CSS 0.20% Python 2.94%
editor gnome-circle gtk4 libadwaita metadata pdf vala

paper-clip's People

Contributors

albanobattistella avatar alexmelman88 avatar amereyeu avatar bertob avatar bragefuglseth avatar diego-ivan avatar dodoledev avatar ingrownmink4 avatar kianmeng avatar mejans avatar milotype avatar rene-coty avatar scrambled777 avatar ser82-png avatar sophie-h avatar vistaus avatar yakushabb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

paper-clip's Issues

TOC editing

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.

enhacement: Better editing interface for Conversion and Creation Software

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:

  • Organization (No Spaces)
  • Software Name (Can contain spaces)
  • Version (Number, can not contain spaces)
  • Tokens (Additional Information, between parentheses and separated by semicolons)

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 name

update croatian and german translation files

Please add attached updated Croatian and German .po translation files.

  • Both files are updated according to the current pdf-metadata-editor.pot file (POT-Creation-Date: 2024-01-27 21:42-0600).
  • All unused/old strings are deleted

Due to my old MacOS and Firefox versions I'm not able to send merge requests via GitHub :-((
hr-de.zip

enhancement: Improve thumbnail generation

Thumbnails have received some improvements since they were introduced, nonetheless, there are certainly some important considerations:

  • They are heavy on memory. As we load the entire first page of the document in memory and then we scale it down. It would be better for us to scale it while loading it.
  • It's expensive. We currently use Cairo, then use I/O, then we load into Gdk.Textures and then we scale down. This is not optimal, getting rid of I/O may actually be a good alternative.

Suggestion | Property coverage extension

v.: 4.0. Hello. Evince¹, a Gnome's document viewer reveals pertinent properties that this application currently misses and would be all worth revealing as well.

evice-v 45 0_properties_1

and font related

evice-v 45 0_properties_2

1 In version 45.0.

Rename .doap-file

The .doap-file needs to have the same name as the repo: Paper-Clip.doap

Hit return to add a tag

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.

Inconsistent branding

Unable to edit PDF file metadata after cleaning it with metadata-cleaner

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!

Suggestion: "open with [Paper Clip]" option

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..

Add Hindi translation

@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.

Add keywords "PDF", "Metadata" and "Editor" to .desktop file

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.

XMP Dublin Core namespace - Document Title dc:title

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 from 2024-01-22 14-52-02

Screenshot of Evince:

Screenshot from 2024-01-22 14-50-56

App icon improvements

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:

  • The lines on the document could be spaced evenly
  • The "chin" on the sheet could be styled to make it look like an actual stack of paper sheets
  • The metaphor itself is a little unclear, as the app isn't really for editing PDF documents directly, but rather editing their metadata
  • There are some weird quirks with the pencil

  • The icon elements should be aligned with the pixel grid, which will make it look sharp even at small sizes (you can show the grid by pressing shift + 3 in Inkscape)

Based on these points, I have some improvements I'd like to make to the icon:

  • Redesign the icon from the ground up to make the elements be properly spaced and aligned to the pixel grid
  • Change the metaphor to clarify what the app does. I'd like to try a smaller sheet of paper paperclipped to the document, with the pencil writing on that instead.

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. 😄

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.