<HTML ><HEAD ><TITLE >PDF_open_png</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="Manual de PHP" HREF="index.html"><LINK REL="UP" TITLE="PDF functions" HREF="ref.pdf.html"><LINK REL="PREVIOUS" TITLE="pdf_open_pdi" HREF="function.pdf-open-pdi.html"><LINK REL="NEXT" TITLE="pdf_open_tiff" HREF="function.pdf-open-tiff.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Manual de PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.pdf-open-pdi.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.pdf-open-tiff.html" ACCESSKEY="N" >Siguiente</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.pdf-open-png" ></A >PDF_open_png</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN59357" ></A ><P > (PHP 4 )</P >PDF_open_png -- Opens a PNG image </DIV ><DIV CLASS="refsect1" ><A NAME="AEN59360" ></A ><H2 >Description</H2 >int <B CLASS="methodname" >pdf_open_png</B > ( int pdf, string png_file)<BR ></BR ><P > The <B CLASS="function" >PDF_open_png()</B > function opens an image stored in the file with the name <TT CLASS="parameter" ><I >filename</I ></TT >. The format of the image has to be png. The function returns a pdf image identifier. <TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" CLASS="EXAMPLE" ><TR ><TD ><DIV CLASS="example" ><A NAME="AEN59374" ></A ><P ><B >Ejemplo 1. Including a PNG image</B ></P ><TABLE BORDER="0" BGCOLOR="#E0E0E0" CELLPADDING="5" ><TR ><TD ><PRE CLASS="programlisting" ><?php $im = PDF_open_png ($pdf, "test.png"); pdf_place_image ($pdf, $im, 100, 100, 1); pdf_close_image ($pdf, $im); ?></PRE ></TD ></TR ></TABLE ></DIV ></TD ></TR ></TABLE > </P ><P > See also <A HREF="function.pdf-close-image.html" ><B CLASS="function" >PDF_close_image()</B ></A >, <A HREF="function.pdf-open-jpeg.html" ><B CLASS="function" >PDF_open_jpeg()</B ></A >, <A HREF="function.pdf-open-gif.html" ><B CLASS="function" >PDF_open_gif()</B ></A >, <A HREF="function.pdf-open-memory-image.html" ><B CLASS="function" >PDF_open_memory_image()</B ></A >, <B CLASS="function" >PDF_execute_image()</B >, <A HREF="function.pdf-place-image.html" ><B CLASS="function" >PDF_place_image()</B ></A >, <B CLASS="function" >PDF_put_image()</B >. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.pdf-open-pdi.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Inicio</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.pdf-open-tiff.html" ACCESSKEY="N" >Siguiente</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >pdf_open_pdi</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.pdf.html" ACCESSKEY="U" >Subir</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >pdf_open_tiff</TD ></TR ></TABLE ></DIV ></BODY ></HTML >