The Server Pages
:: TSP Menu
- Home
- Authors
- Glossary
- RSS Feed

:: Servers
- CPanel
- Hosting
- Linux
- Windows

:: Webmaster
- Databases
- Design
- PHP
- Search Engines

:: Scripts
- Scripts

:: Documentation
- PHP Manual

:: Other
- Errors & Solutions
- TechPunt
- Wojjie

search for in the

PDF_get_value> <PDF_get_pdi_parameter
[edit] Last updated: Sat, 12 May 2012

view this page in

PDF_get_pdi_value

(PHP 4 >= 4.0.5, PECL pdflib >= 1.0.0)

PDF_get_pdi_valueGet PDI numerical parameter [deprecated]

Description

float PDF_get_pdi_value ( resource $p , string $key , int $doc , int $page , int $reserved )

Gets the contents of a PDI document parameter with numerical type.

This function is deprecated since PDFlib version 7, use PDF_pcos_get_number() instead.



PDF_get_value> <PDF_get_pdi_parameter
[edit] Last updated: Sat, 12 May 2012
 
add a note add a note User Contributed Notes PDF_get_pdi_value
gregors at rose-hulman dot edu 13-Jun-2003 09: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 09: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 07: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);

 
show source | credits | sitemap | contact | advertising | mirror sites