©
本文档使用 PHP中文网手册 发布
(PECL pdflib >= 2.0.0)
PDF_fill_textblock — Fill text block with variable data
$pdfdoc
, int $page
, string $blockname
, string $text
, string $optlist
)Fills a text block with variable data according to its properties.
This function is only available in the PDFlib Personalization Server (PPS).
[#1] Anonymous [2009-07-02 13:54:22]
This function's purpose is to fill in an AcroForm field. The concept of "Block" comes from the PDFlib Personalization Server (PPS) terminology.
[#2] stephen at pacificscreening dot com [2009-04-29 14:24:46]
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.