略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: PDF_fill_textblock

2024-11-13

PDF_fill_textblock

(PECL pdflib >= 2.0.0)

PDF_fill_textblockFill text block with variable data

说明

PDF_fill_textblock ( resource $pdfdoc , int $page , string $blockname , string $text , string $optlist ) : int

Fills a text block with variable data according to its properties.

This function is only available in the PDFlib Personalization Server (PPS).

add a note add a note

User Contributed Notes 2 notes

up
3
Anonymous
9 years ago
This function's purpose is to fill in an AcroForm field.  The concept of "Block" comes from the PDFlib Personalization Server (PPS) terminology.
up
-2
stephen at pacificscreening dot com
10 years ago
You should be aware that the PDF Lib documentation says that this method should return a textflow handle that can then be used on subsequent calls (i.e. to have an arbitrary number of boxes and have the text continue to spill over). It does not, at least not in my version of PHP (4.3.8). I had to dig around and find a message in the official message boards saying it does NOT work this way. The only way to do textflow is to use pdf_fit_textflow() and grab the locations of the target box each time.

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

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