This will avoid calling pdfinfo on directories and such. name \*.pdf -print -exec pdfinfo \ | grep -E '^(\.|Pages)'Ĭonsider -type f as the first test in case some non-regular file matches -name \*.pdf by chance. grep -E '^(\.|Pages)' matches lines with a literal dot at the beginning or the string Pages at the beginning. If you are more into the GUI side of things you could give my project PDFMtEd a try. Last Updated: Time to Read: 3-5 minutes The development of Calibre 4.2.0 by Kovid Goyal prompted the latest creation of pdfinfo.exe. sudo apt-get install libimage-exiftool-perl. Use the fact every pathname considered by find. 3 Steps to Download and Fix Pdfinfo.exe Errors. In the context of your question I personally prefer the pathname first, so -print -exec …. ![]() Share Improve this answer Follow answered at 17:24 johnwhitington 2,019 1 15 17 It also prints 'For non-commercial use only' on the output, which is quite annoying, even if you only want the number of pages. In general one uses -exec … -print when -exec is used as a test. cpdf.exe -pages file.pdf which will print the number of pages to standard output. If you prefer the pathname after the output of the respective pdfinfo then you may try -exec … -print, but note in this case -print will be performed iff -exec (i.e. The second tool we discussed was exiftool, which is a versatile tool used for reading and writing metadata information in a wide variety of files including PDF. It also prints some other additional information. Then Author is the key and the remaining part is the value. The first command, pdfinfo, extracts the document information dictionary within a PDF document. The latter, the commas between the key value pairs are missing. Now, we’ll use pdfinfo to examine a PDF document, example. Besides the contents of the dictionary, it also prints other useful information such as page count, page size, PDF version. ), but the presence of -exec suppresses the default. 1 Answer Sorted by: 10 Option pdfinfo expect key value pairs, separated by commas. We can use the pdfinfo command to print the contents of the document information dictionary of a PDF document. ![]() ![]() Organization for Nuclear Research (CERN) Personal/Dusted Personal/Tony. This way the pathname will be printed by find before the respective pdfinfo prints its output. info/Bio info/Awards info/Published info/PDF info/BTS info/Select Clients.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |