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

search for in the

PDF_set_layer_dependency> <PDF_set_info_title
Last updated: Fri, 13 Nov 2009

view this page in

PDF_set_info

(PHP 4 >= 4.0.1, PECL pdflib >= 1.0.0)

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
many dot uy at hotmail dot com
13-Jun-2008 04:48
<?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");

?>
mrmueller at gmx dot com
10-Sep-2006 03: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");

PDF_set_layer_dependency> <PDF_set_info_title
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites