General date is six months out while modified date appears to be correct. Where 100 or 101 etc etc is the folder name - all seems fine except for one folder so far where the date seems about six months out - November 2005 rather than May 2006 - cannot understand how this happened - assume the camera time was out - however checking image properties shows I hope you liked it.I have been working my way through scores of image folders in Lubuntu deleting duplicates etc and renaming all my images by their date created which also seems to be called general date and time using this command -Įxiftool -ext jpg "-FileName In this post, you learned an important part of manipulating PDF files. If you want to simply remove a metadata, then leave it blank exiftool -Author= document.pdfīut it is possible to clear them all exiftool -all= document.pdf So the syntax is simple, just define the metadata and specify the new value. exiftool -Author="Unixcop" sample.pdf Setting the PDF metadata exiftool -Creator="Unixcop" sample.pdfĪlso if a metadata is not specified, you can add it with the above syntax. In case you want to change some metadata, say the Creator. It can also be other metadata exiftool -Keywords sample.pdf This means that the output screen will only show the author of the document. If you would like to get only an extract of this metadata, you can do it as follows exiftool -Creator sample.pdf Note: For this post i used an sample PDF file from here exiftool sample.pdf Getting the PDF metadata Of course, you can use relative and absolute paths to get the results. If you want to get the metadata of any PDF file, you can run exiftool Getting and changing PDF metadata on Linux using the terminal Once you have the package installed, you can continue with the post. If you are using Fedora, CentOS, RHEL, or Rocky Linux then you have to run: sudo dnf install perl-Image-ExifTool In the case of Debian, Ubuntu, Linux Mint and other members of the family, you can install it with this command: sudo apt install libimage-exiftool-perl To perform the task, we need a tool called exiftool with which we can edit the metadata of a PDF file without major problems. Moreover, this will ensure that it will work in almost any environment. Many times in configuration scripts we can include various commands to automate processes, and file management is no exception.īesides this, it is always useful to have the terminal at hand, since it is faster and more efficient than in a graphical interface. So, you can quickly use it for a specific case or several files. In this post, I will show you How to get and change PDF metadata on Linux using the terminal.