PHP: PDF_set_info - Manual

downloads | documentation | faq | getting help | mailing lists | 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, 26 Jan 2007

view this page in

# PDF_set_info

(PHP 4 >= 4.0.1, PECL)

PDF_set_info -- Fill document info field

## Описание

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

Fill document information field `key` with `value`. Возвращает `TRUE` в случае успешного завершения или `FALSE` в случае возникновения ошибки.

add a note User Contributed Notes
PDF_set_info
mrmueller at gmx dot com
10-Sep-2006 08: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");`
add a note
PDF_set_layer_dependency PDF_set_info_title

Last updated: Fri, 26 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST