略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: PDF_open_pdi

2024-05-07

PDF_open_pdi

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

PDF_open_pdiOpen PDF file [deprecated]

说明

PDF_open_pdi ( resource $pdfdoc , string $filename , string $optlist , int $len ) : int

Opens a disk-based or virtual PDF document and prepares it for later use.

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

add a note add a note

User Contributed Notes 2 notes

up
0
ytsedan
13 years ago
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 PDFlib’s 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
up
-13
m_schieferdecker at hotmail dot com
15 years ago
The function returns the intval -1 on failure.

官方地址:https://www.php.net/manual/en/function.pdf-open-pdi.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3