This is an archived forum post. The information may be outdated. Contact us if you have any questions.

Number of pages?

SoloX wrote on 2013-07-13:
Using PHP, is there any var in $client (object Pdfcrowd) that tells you how many pages you generated?
support wrote on 2013-07-15:
Hello,

There is no such variable. However, this information can be retrieved from the generated PDF file using third party tools. For example if you are on Linux, you can use the following:
$num_pages = exec("pdftk ".$pdf_path." dump_data | grep NumberOfPages: | cut -d ' ' -f 2");
SoloX wrote on 2013-07-16:
Awrighty then, thanks.