Get the number of pages in a PDF document

后端 未结 12 1868
你的背包
你的背包 2020-12-07 09:00

This question is for referencing and comparing. The solution is the accepted answer below.

Many hours have I searched for a fast and easy, but mostly a

12条回答
  •  孤街浪徒
    2020-12-07 09:19

    You can use qpdf like below. If a file file_name.pdf has 100 pages,

    $ qpdf --show-npages file_name.pdf
    100
    

提交回复
热议问题