PHP 5.4.31 Released

PDF_set_info

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

PDF_set_infoRemplit un champ de l'en-tête de document PDF

Description

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

PDF_set_info() remplit l'un des champs d'en-tête du document. Cette fonction retourne TRUE en cas de succès ou FALSE si une erreur survient.

add a note add a note

User Contributed Notes 1 note

up
0
many dot uy at hotmail dot com
6 years ago
<?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");

?>
To Top