Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: PDF_set_info - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net

search for in the

PDF_set_layer_dependency" width="11" height="7"/> <PDF_set_info_title
Last updated: Wed, 01 Nov 2006
view this page in

PDF_set_info

(PHP 4 >= 4.0.1, PECL)

PDF_set_info -- ドキュメント情報のフィールドを設定する

説明

bool PDF_set_info ( resource p, string key, string value )

ドキュメント情報フィールド keyvalue を設定します。成功した場合に TRUE を、失敗した場合に FALSE を返します。



add a note add a note User Contributed Notes
PDF_set_info
mrmueller at gmx dot com
11-Sep-2006 12:00
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");
ahmed613 at sbcglobal dot net
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 ;)

 
show source | credits | sitemap | contact | advertising | mirror sites