Keeping the site online is challenging, with everyone blocking Ads □. nixCraft is a one-person show, and many of you use Adblocker. □ Was this helpful? Please add a comment to show your appreciation or feedback. Join the nixCraft community via RSS Feed or Email Newsletter. He wrote more than 7k+ posts and helped numerous readers to master IT topics. Vivek Gite is the founder of nixCraft, the oldest running blog about Linux and open source. For more info read documentation using the man command or pass the -help option: You learned about the pdfinfo command which acts as a Portable Document Format (PDF) document information extractor on a Unix and Linux CLI. $ pdfinfo myfile.pdf | grep -i author Summing up Of course, you can use the grep command or egrep command to filter out info for your scripts. We can see the document metadata (XML) as follows: $ pdfinfo -upw user-password-here filename.pdf How to print all JavaScript in the PDF You can specify the user password for the PDF file as follows: $ pdfinfo -opw owner-password-here file.pdf Providing this will bypass all security restrictions. Specify the owner password for the PDF file. PDF version: 1.3 A note about password protected pdf files Sample output: Title: Telecommunication Protocols Laboratory Course Pdfinfo to view tech information about a pdf file Let us see some examples for the pdfinfoc command. print and copy permissions (if encrypted).In addition, the following information is displayed too: The ‘Info’ dictionary contains the following values for given pdf file: Extracting poppler-utils-22.09.0_1: 100% What information is printed using the pdfinfo command The process will require 55 MiB more space. The following 10 package(s) will be affected (of 0 checked): Sample session from FreeBSD version 13: Password:įetching packagesite.pkg: 100% 6 MiB 6.7MB/s 00:01įreeBSD repository update completed. $ brew install xpdf FreeBSD install pdfinfo How to install xpdf on macOS / OS X to get pdfinfoįirst, install homebrew on macOS or OS X and then use the brew command as follows: The poppler-util Debian/Ubuntu/Mint Linux package contains command line utilities (based on Poppler) for getting information of PDF documents, convert them to other formats, or manipulate them. Use the apt-get command or apt command as follows to install the pdfinfo. Installing pdfinfo to find out PDF file information
0 Comments
Leave a Reply. |