©
Ce document utilise Manuel du site Web PHP chinois Libérer
(PHP 4 >= 4.0.1, PECL pdflib >= 1.0.0)
PDF_set_info — Fill document info field
$p
, string $key
, string $value
)
Fill document information field key
with
value
. 成功时返回 TRUE
, 或者在失败时返回 FALSE
。
[#1] many dot uy at hotmail dot com [2008-06-13 09:48:28]
<?php
$pdf = pdf_new();
pdf_open_file($pdf, "test.pdf");
// set PDF properties
pdf_set_info($pdf, "Author", "Mart??n Gonzalez");
pdf_set_info($pdf, "Title", "Test PDF");
pdf_set_info($pdf, "Creator", "Mart??n Gonzalez");
pdf_set_info($pdf, "Subject", "Test PDF");
?>