

Open the text file with whatever text editor you prefer, such as Notepad or WordPad, and you'll see one line in there with the page count. Issue a DIR command in the command prompt to show that the text file was created. Verify that the text file that was created. Pdfinfo test.pdf|find "Pages:">numpages.txtĨ. Run PDFinfo again, this time piping the output to the FIND filter and then redirecting the output to a text file. In the command prompt window, enter the following command:ħ.


#Pdfinfo inside unix shell pdf#
Run the PDFinfo utility on the sample PDF file. Issue a DIR command in the command prompt to be sure that only two files are in it - the PDFinfo executable and the sample PDF file.Ħ. This is the documentation for the PDFinfo tool.Ĭopy from the unzipped folder into your test folder.Ĭopy a sample PDF file into your test folder (in the video and the screenshots below, the file is called test.pdf, which is a PDF file created from my EE article, Windows 10 uses YOUR computer to help distribute itself). Open it with any text editor, such as Notepad, and read it. Go into the folder and find the plain text file called. The (-n) when used in conjunction with (p)rint will avoid repetition of line printing. Sed - matches values found in 'Count' strings. Read the documentation for the PDFinfo tool. strings - grabs all strings from PDF binary. Go to the folder where you unzipped the downloaded ZIP file and find the folder.ģ. Locate the documentation folder for the Xpdf utilities. Click the Download link and then click the pre-compiled Windows binary ZIP archive to download the utilities for Windows.Ģ. 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.
