pdf_set_info

(PHP 4 )

pdf_set_info -- Vyplnit polo╛ku informacφ o dokumentu

Popis

void pdf_set_info ( int pdf document, string fieldname, string value)

Funkce pdf_set_info() vyplnφ informaΦnφ pole PDF dokumentu. Mo╛nΘ hodnoty argumentu fieldname jsou 'Subject', 'Title', 'Creator', 'Author', 'Keywords' a jeden u╛ivatelsky definovan² nßzev. M∙╛e b²t volßna p°ed zaΦßtkem strßnky.

P°φklad 1. Zadßnφ informacφ o dokumentu

<?php
$fd = fopen("test.pdf", "w");
$pdfdoc = pdf_open($fd);
pdf_set_info($pdfdoc, "Author", "Uwe Steinmann");
pdf_set_info($pdfdoc, "Creator", "Uwe Steinmann");
pdf_set_info($pdfdoc, "Title", "Testing Info Fields");
pdf_set_info($pdfdoc, "Subject", "Test");
pdf_set_info($pdfdoc, "Keywords", "Test, Fields");
pdf_set_info($pdfdoc, "CustomField", "What ever makes sense");
pdf_begin_page($pdfdoc, 595, 842);
pdf_end_page($pdfdoc);
pdf_close($pdfdoc);
?>

Poznßmka: Tato funkce nahrazuje pdf_set_info_keywords(), pdf_set_info_title(), pdf_set_info_subject(), pdf_set_info_creator() a pdf_set_info_sybject().