pdf_set_info

(PHP 4 >= 4.0.1, PECL)

pdf_set_info -- Fills a field of the document information

Description

bool pdf_set_info ( resource pdfdoc, string key, string value )

Fill document information field key with value. 如果成功则返回 TRUE,失败则返回 FALSEkey is one of Subject, Title, Creator, Author, Keywords, or a user-defined key.


add a note add a note User Contributed Notes
ahmed613 at sbcglobal dot net
31-May-2006 02:27
Well, the pdf_set_info is used to set info such as the creator, Author name, And the subject of the document.
The Syntax of the pdf_set_info is: pdf_set_info("pdf object", "Author", "The value of the Author").
It's all explaind in the exmable below:

// $pdf is the name of the pdf ducoment you created.
pdf_set_info($pdf, "author", "Ahmed");
pdf_set_info($pdf, "title", "PDF tutorial");
pdf_set_info($pdf, "subject" , "PDF tutorial");
pdf_set_info($pdf, "creator", "php.net");

I wish it works with you ;)