If the first example does'nt show the correct dcoument property in Acrobat Reader, you should change first letters of the paramentes in capital letter. Instead "author" you should type "Author"...
// $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", "phpnet");
PDF_set_info
説明
bool PDF_set_info ( resource p, string key, string value )ドキュメント情報フィールド key に value を設定します。成功した場合に TRUE を、失敗した場合に FALSE を返します。
PDF_set_info
mrmueller at gmx dot com
11-Sep-2006 12:00
11-Sep-2006 12:00
ahmed613 at sbcglobal dot net
31-May-2006 03:27
31-May-2006 03: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 ;)