Get number of pages in a pdf using a cmd batch file

前端 未结 7 724
深忆病人
深忆病人 2021-02-01 01:37

I can see there are a lot of questions for getting the number of pages in a a pdf with C, PHP and others but am wondering with a batch file or cmd is there a simple way of getti

7条回答
  •  终归单人心
    2021-02-01 01:39

    I know this is old post, yet still very much relevant, so I believe that there should be an answer which can tell how to get page count using "poppler-0.68.0" utility, in windows.

    Navigate to bin folder and run pdfinfo.exe like - C:\Temp\temp_folder\poppler-0.68.0\bin>pdfinfo.exe "C:\Temp\temp_folder\TT.pdf"

提交回复
热议问题