0

Is there any way to count the pages of a pdf that is not ImageMagick?

Many regex scripts do not always work.

ImageMagick works but is very slow. Having a shared hosting I do not have the possibility to use Pdfinfo. In case I can also use javascript.

Gufran Hasan
  • 8,910
  • 7
  • 38
  • 51
Leo
  • 11
  • 1
  • 3
  • Possible duplicate of [How to get the number of pages of a .PDF uploaded by user?](https://stackoverflow.com/questions/10253669/how-to-get-the-number-of-pages-of-a-pdf-uploaded-by-user) – Gufran Hasan Dec 05 '18 at 08:19

1 Answers1

0

You can do this using pdf.js.