PDFs February 18, 2015February 18, 2015Leave a comment 1. Count the number of pages in all the PDFs in a folder. for %%d in (*.pdf) do ( echo. |set /P = %%d >> _pdf_check.txt c:\temp\pdftk "%%d" dump_data | find "NumberOfPages" >> _pdf_check.txt ) pause