pdf_open_pdi

(PHP 4 >= 4.0.5, PECL)

pdf_open_pdi --  Opens a PDF file

Description

int pdf_open_pdi ( resource pdfdoc, string filename, string stringparam, int intparam )

Opens an existing PDF document and prepares it for later use.

See also pdf_close_pdi().


add a note add a note User Contributed Notes
ytsedan
29-Mar-2006 04:33
From PDFLib's manual:

"When the optional PDI (PDF import) library is attached to PDFlib, pages from existing PDF documents can be imported. PDI contains a parser for the PDF file format, and prepares pages from existing PDF documents for easy use with PDFlib.

Conceptually, imported PDF pages are treated similarly to imported raster images such as TIFF or PNG: you open a PDF document, choose a page to import, and place it on an output page, applying any of PDFlibs transformation functions for translating, scaling, rotating, or skewing the imported page."

The manual can be downloaded along with PDFLib at http://www.pdflib.com/products/pdflib/download/index.html
m_schieferdecker at hotmail dot com
02-Mar-2004 01:48
The function returns the intval -1 on failure.
tylerrayner at netscape dot net
29-May-2002 12:45
The "stringparam" and "intparam" here are reserved for later use, and must be NULL and 0, respectively.