5

Finding the page count of a PDF document from the CLI is as simple as:

pdfinfo file.pdf | grep ^Pages:

How can the same be performed with a djvu file? Without converting it to a pdf and then deleting the pdf file after checking the number of pages, please.

Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
Quora Feans
  • 3,806
  • 7
  • 29
  • 46

1 Answers1

6
djvused -e n file.djvu

(from http://djvu.sourceforge.net/, djvulibre-bin package on Debian and derivatives).

Stéphane Chazelas
  • 522,931
  • 91
  • 1,010
  • 1,501