pdf_get_pdi_value

(PHP 4 >= 4.0.5, PECL)

pdf_get_pdi_value -- Gets some PDI numerical parameters

Description

float pdf_get_pdi_value ( resource pdfdoc, string key, int doc, int page, int index )

Get the contents of some PDI document parameter with numerical type.



pdf_get_pdi_value
gregors at rose-hulman dot edu
13-Jun-2003 02:11
If you are having troubles getting the page count make sure you have Root caplitalized correctly.

$numPages=pdf_get_pdi_value($p,"/Root/Pages/Count",$input,0,0);
09-May-2003 02:16
For keys which are not page-related page must be -1 (in PHP: 0).
ian dot kinnear at optus-ebiz dot com
13-Jul-2001 12:56
From the pdflib manual...

key: Specifies the name of the parameter
doc: a valid PDF document handle retrieved with PDF_open_pdi()
page: A valid PDF page handle (not page number!). For keys which are not page-related page must be -1

Example:

$numPages=pdf_get_pdi_value($p,"/root/Pages/Count",$input,0,0);

<pdf_get_pdi_parameterpdf_get_value>
 Last updated: Tue, 15 Nov 2005