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.