PHP 5.6.0 released

PDF_set_info

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

PDF_set_infoRellenar el campo de información de un documento

Descripción

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

Rellena el campo de información de un documento key con value. Devuelve TRUE en caso de éxito o FALSE en caso de error.

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