In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF file's Info Dictionary, as well as some other information (metadata), including the page count. We show how to isolate the page count in a plain text file, and the same method may be used to isolate other metadata fields, such as the Author and PDF Producer. PDFinfo provides a command line interface, making it suitable for use in batch files, programs, and scripts — any place where a command line call can be made.
1. Download the software.
You may have already downloaded and unzipped the Xpdf tools while watching the first video in the Xpdf series, but if you haven't, then visit the Xpdf website. Click the Download link and then click the pre-compiled Windows binary ZIP archive to download the utilities for Windows.
2. Locate the documentation folder for the Xpdf utilities.
Go to the folder where you unzipped the downloaded ZIP file and find the <doc> folder.
3. Read the documentation for the PDFinfo tool.
Go into the <doc> folder and find the plain text file called <pdfinfo.txt>.
Open it with any text editor, such as Notepad, and read it. This is the documentation for the PDFinfo tool.
4. Set up a test folder.
Create a test folder.
Copy <pdfinfo.exe> from the unzipped <bin32> folder into your test folder.
Most of us live by Coffee. However, are you disguising the flavor of cheap store-bought grounds (or worse, k-cups) with chemical-induced creamers? There is a much better option, and it is easier than you think!