I need a command line tool for editing metadata of pdf-files.
I'm using a Aiptek MyNote Premium tablet for writing my notes and minutes on this device, import them later and convert them to pdf automatically with a simple script using inkscape and ghostscript.
Is there any command line tool to add some categories to the pdf's metadata, so i can find the pdf later (e.g. with gnome-do) by categories?
Update: I tried the solution with pdftk and it works, but it seems that gnome-do doesn't take care of pdf-metadata. Is there a way to get gnome-do to do that?
exiftoolwithout mentionin the above limitation? Because it's just a "gist" and doesn't claim to be bullet-proof / hold water? Could be that linearization does indeed go in the direction of anon., but does it go all the way? – nutty about natty Aug 14 '14 at 06:56exiftool -overwrite_original -all:all="" file.pdf; 2.) Useexiftool -PDF-update:all= file.pdfto confirm that there is still old metadata present; 3.) linearize the file withqpdf --linearize file.pdf; 4.) Check again, like you did in 2.); all metadata should be gone; – Glutanimate Aug 14 '14 at 07:54pdfinfo -meta file.pdf) – Glutanimate Aug 14 '14 at 07:55exiftool -overwrite_original -tagsFromFile <srcfile> <destfile>is what I need (the option-overwrite_originaloverwrites the original<destfile>). – AstroFloyd Apr 22 '18 at 15:57exiftoolmanual : "3) Changes to PDF files by ExifTool are reversible (by deleting the update with "-PDF-update:all=") because the original information is never actually deleted from the file. So ExifTool alone may not be used to securely edit metadata in PDF files." – Alex Aug 14 '19 at 08:12exiftool -Title="Smthg" filenam[tab]. Filename completion only works with:exiftool finenam[tab]. There is no completion script for exiftool in/usr/share/bash-completion/, so this annoying problem could (should) be fixed there. – PlasmaBinturong Jan 29 '21 at 17:03