Create a new PDF file using the supplied file name.
If filename is empty the PDF document
will be generated in memory instead of on file. The result
must be fetched by the client with the
pdf_get_buffer() function.
Parameter filename is optional before PHP 4.3.5 or
with PDFlib less than 5.
Devuelve TRUE si todo se
llevó a cabo correctamente, FALSE en caso
de fallo.
The following example shows how to create a pdf document in memory
and how to output it correctly.
Ejemplo 1. Creating a PDF document in memory
<?php
$pdf = pdf_new();
pdf_open_file($pdf); pdf_begin_page($pdf, 595, 842); pdf_set_font($pdf, "Times-Roman", 30, "host"); pdf_set_value($pdf, "textrendering", 1); pdf_show_xy($pdf, "A PDF document created in memory!", 50, 750); pdf_end_page($pdf); pdf_close($pdf);
Atención técnica y comercial: (54)-11-5031-1111 las 24 hs. los 365 días del año. ToWebs, (c) 2008
Virtucom Networks S.A Av. Belgrano 1586, piso 10 (C1093AAQ) Cap. Fed. Bs. As, Argentina.