<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" > <channel><title>Comments on: Generar PDF con PHP</title> <atom:link href="http://blog.unijimpe.net/generar-pdf-con-php/feed/" rel="self" type="application/rss+xml" /><link>http://blog.unijimpe.net/generar-pdf-con-php/</link> <description>Desarrollo Web, SEO, Adsense</description> <lastBuildDate>Wed, 08 Feb 2012 16:05:03 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Generar PDFs en PHP &#124; Enrique Acevedo</title><link>http://blog.unijimpe.net/generar-pdf-con-php/comment-page-8/#comment-44973</link> <dc:creator>Generar PDFs en PHP &#124; Enrique Acevedo</dc:creator> <pubDate>Sun, 05 Feb 2012 08:40:19 +0000</pubDate> <guid isPermaLink="false">http://blog.unijimpe.net/generar-pdf-con-php/#comment-44973</guid> <description>[...] Ejemplos [...]</description> <content:encoded><![CDATA[<p>[...] Ejemplos [...]</p> ]]></content:encoded> </item> <item><title>By: antonio</title><link>http://blog.unijimpe.net/generar-pdf-con-php/comment-page-8/#comment-44910</link> <dc:creator>antonio</dc:creator> <pubDate>Tue, 31 Jan 2012 18:14:59 +0000</pubDate> <guid isPermaLink="false">http://blog.unijimpe.net/generar-pdf-con-php/#comment-44910</guid> <description>Hola! necesito una ayuda, estoy usando esta herramienta.pero al momento de correr la aplicasion me sale el siguiente error Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\imprime\imp\documento.php:9) in C:\AppServ\www\imprime\imp\class.pdf.php on line 1916 y la linea es esta en class.pdf es esta: header(&quot;Content-type: application/pdf&quot;);</description> <content:encoded><![CDATA[<p>Hola! necesito una ayuda, estoy usando esta herramienta.pero al momento de correr la aplicasion me sale el siguiente error<br /> Warning: Cannot modify header information &#8211; headers already sent by<br /> (output started at C:\AppServ\www\imprime\imp\documento.php:9)<br /> in C:\AppServ\www\imprime\imp\class.pdf.php on line 1916<br /> y la linea es esta en class.pdf es esta:<br /> header(&#8220;Content-type: application/pdf&#8221;);</p> ]]></content:encoded> </item> <item><title>By: Fernando</title><link>http://blog.unijimpe.net/generar-pdf-con-php/comment-page-8/#comment-44808</link> <dc:creator>Fernando</dc:creator> <pubDate>Fri, 20 Jan 2012 15:18:44 +0000</pubDate> <guid isPermaLink="false">http://blog.unijimpe.net/generar-pdf-con-php/#comment-44808</guid> <description>Felicitaciones por toda la ayuda que nos dan a los que sabemos poco</description> <content:encoded><![CDATA[<p>Felicitaciones por toda la ayuda que nos dan a los que sabemos poco</p> ]]></content:encoded> </item> <item><title>By: Eunice</title><link>http://blog.unijimpe.net/generar-pdf-con-php/comment-page-8/#comment-44680</link> <dc:creator>Eunice</dc:creator> <pubDate>Thu, 12 Jan 2012 14:11:17 +0000</pubDate> <guid isPermaLink="false">http://blog.unijimpe.net/generar-pdf-con-php/#comment-44680</guid> <description>Hola! necesito una ayuda, estoy usando esta herramienta. Pero de un tiempo para el archivo que se genera no abre. Me dice que el tipo de archivo desconocido (application/octect-stream) no está permitido. Porque será eso?</description> <content:encoded><![CDATA[<p>Hola! necesito una ayuda, estoy usando esta herramienta. Pero de un tiempo para el archivo que se genera no abre. Me dice que el tipo de archivo desconocido (application/octect-stream) no está permitido. Porque será eso?</p> ]]></content:encoded> </item> <item><title>By: Jhon Wilson Vanegas Benitez</title><link>http://blog.unijimpe.net/generar-pdf-con-php/comment-page-8/#comment-44647</link> <dc:creator>Jhon Wilson Vanegas Benitez</dc:creator> <pubDate>Tue, 10 Jan 2012 16:33:37 +0000</pubDate> <guid isPermaLink="false">http://blog.unijimpe.net/generar-pdf-con-php/#comment-44647</guid> <description>Tengo problemas al generar el documento pdf y me sale el siguiente error, agradezco me colaboren con esto, estoy en colombiaDeprecated: Assigning the return value of new by reference is deprecated in C:\AppServ\www\Mantenimiento\ubipdf.php on line 3Strict Standards: date() [function.date]: It is not safe to rely on the system&#039;s timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected &#039;America/New_York&#039; for &#039;-5.0/no DST&#039; instead in C:\AppServ\www\Mantenimiento\class.pdf.php on line 689Strict Standards: date() [function.date]: It is not safe to rely on the system&#039;s timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected &#039;America/New_York&#039; for &#039;-5.0/no DST&#039; instead in C:\AppServ\www\Mantenimiento\ubipdf.php on line 46Strict Standards: date() [function.date]: It is not safe to rely on the system&#039;s timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected &#039;America/New_York&#039; for &#039;-5.0/no DST&#039; instead in C:\AppServ\www\Mantenimiento\ubipdf.php on line 47Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\Mantenimiento\ubipdf.php:3) in C:\AppServ\www\Mantenimiento\class.pdf.php on line 1916Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\Mantenimiento\ubipdf.php:3) in C:\AppServ\www\Mantenimiento\class.pdf.php on line 1917Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\Mantenimiento\ubipdf.php:3) in C:\AppServ\www\Mantenimiento\class.pdf.php on line 1919 %PDF-1.3 %���� 1 0 obj &lt;&gt; endobj 2 0 obj &lt;&gt; endobj 3 0 obj &lt;&lt; /Type /Pages /Kids [6 0 R 10 0 R ] /Count 2 /Resources &lt;&lt; /ProcSet 4 0 R /Font &lt;&gt; &gt;&gt; /MediaBox [0.000 0.000 841.890 595.280] &gt;&gt; endobj 4 0 obj [/PDF /Text ] endobj 5 0 obj &lt;&gt; endobj 6 0 obj &lt;&gt; endobj 7 0 obj &lt;&gt; stream x���Ms�0��� ۋ�V��R���$�M�ލ-�:`5&quot;�?�?� m�2�.{��}W�]M&gt;DU�R�JfIQ��5&#039;(#ņ���j9�&quot;�w�bq���H�_dQL2T�����蛧2�HjO��s�d��ס��)Tkٕ� ��2W��ɟb&#039;�����7U(��t�B�RVRmz�Ɵ��E�o�:�8� P�_Gc��O6����SxV��;Gm��U�N*�yˁ�.�p����&#124;�F��mo�ކ-^���V�VM�ai��=U����r�^I��:e&#124; �C�R�Z�Q�Ӏ� �I�_�/G�P� endstream endobj 8 0 obj &lt;&gt; endobj 9 0 obj &lt;&gt; stream x���Mo�8���&lt;���z���&quot;�Q[-У�V�.�����/%��L����y_��y��u3-�e4W�(chf)6��=&#039;�QF�����&amp;�O2/n��3A�1�x�t˄����e,�d����R����82 !���e��+7�2iM%L���.��z��2��≾��ӡޓ[ȅe��W�V�md�ZQ%/R���٬YNM���]Ev%Y�����.�*���JȀ���J2X�hϰ����o��(}���a�L��CIj����y�0�&lt;�x���3��fl��a�*@�ͼ��y�4=&quot;&quot; ���%�����=&quot;&quot; c����,���)�q�j����g�=&quot;&quot; a�g�n*��}}&#039;��z&lt;�wҕ�c�@ߡ����;ԕ�;Ԕ�;�2���$�̈́���r�wq��;4ɵ��f�}���=&quot;�3&quot; }�nf��dn)����nd�*�=&quot;&quot; ��]̫09�!��+*�2�=&quot;��R���$�*I�W4���r�k�xE�\�5���:^�@��&quot; ��f�xu�z�q�ww�=&quot;&quot; ����݆b&#124;k�wl��*^9�+�j�f�����,������#���vz�e9��pb�=&quot;&quot; �c��3\��=&quot;+�AL�a�g&amp;��`�1&quot; �=&quot;&quot; �&amp;�ٰ�+�fj��y�l�yp6�-����߳�����l=&quot;&quot; ���0гz6��x=&quot;&quot; f`{6��@])6p�s�r�������9t̂?�g9.���8Е}�k�f�%�]���=&quot;&quot; 18��p��wi�7%�m��Ę+yb��t﷧�@~t�r�=&quot;&quot; 3���z&#039;�����{1��x��݄i�$dr9�do�cmq���\�._�ͥ�gjph���8pfj*�n!��=&quot;R���$R�����-z=�B���d�;�g���?�,4�\�2�!Ϙ���LW�&quot; ��#=&quot;&quot; x&lt;�@�g8��,�a�3�l��8��ɨ+�f�o�%u���7���8�f�=&quot;&quot; �{v��1�8�@�e�%a���=&quot;&quot; ?�p�����rjsa^i7�Бkavd��r��2躁pǍh��~$t=&quot;&quot; ��=&quot;&quot; �ҏd�l�,���h����o��~$t*.ۺj?)3�&#124;��fb�v��=&quot;&quot; j?*=&quot;&quot; �myg�ލdj��u)��pik?(�h���n���a��h#�*c��j�͏t&quot;5j0�4j�?����=&quot;&quot; endstream=&quot;&quot; endobj=&quot;&quot; 10=&quot;&quot; 0=&quot;&quot; obj=&quot;&quot; &lt;&gt; endobj 11 0 obj &lt;&gt; stream x��2�300P@&amp;�ҹ�,�\����`b�gjd�`jf�gil�����,nj�gl endstream endobj xref 0 12 0000000000 65535 f 0000000015 00000 n 0000000080 00000 n 0000000126 00000 n 0000000287 00000 n 0000000316 00000 n 0000000421 00000 n 0000000494 00000 n 0000001049 00000 n 0000001156 00000 n 0000002433 00000 n 0000002498 00000 n trailer &lt;&gt; startxref 2632 %%EOF</description> <content:encoded><![CDATA[<p>Tengo problemas al generar el documento pdf y me sale el siguiente error, agradezco me colaboren con esto, estoy en colombia</p><p>Deprecated: Assigning the return value of new by reference is deprecated in C:\AppServ\www\Mantenimiento\ubipdf.php on line 3</p><p>Strict Standards: date() [function.date]: It is not safe to rely on the system&#8217;s timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected &#8216;America/New_York&#8217; for &#8216;-5.0/no DST&#8217; instead in C:\AppServ\www\Mantenimiento\class.pdf.php on line 689</p><p>Strict Standards: date() [function.date]: It is not safe to rely on the system&#8217;s timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected &#8216;America/New_York&#8217; for &#8216;-5.0/no DST&#8217; instead in C:\AppServ\www\Mantenimiento\ubipdf.php on line 46</p><p>Strict Standards: date() [function.date]: It is not safe to rely on the system&#8217;s timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected &#8216;America/New_York&#8217; for &#8216;-5.0/no DST&#8217; instead in C:\AppServ\www\Mantenimiento\ubipdf.php on line 47</p><p>Warning: Cannot modify header information &#8211; headers already sent by (output started at C:\AppServ\www\Mantenimiento\ubipdf.php:3) in C:\AppServ\www\Mantenimiento\class.pdf.php on line 1916</p><p>Warning: Cannot modify header information &#8211; headers already sent by (output started at C:\AppServ\www\Mantenimiento\ubipdf.php:3) in C:\AppServ\www\Mantenimiento\class.pdf.php on line 1917</p><p>Warning: Cannot modify header information &#8211; headers already sent by (output started at C:\AppServ\www\Mantenimiento\ubipdf.php:3) in C:\AppServ\www\Mantenimiento\class.pdf.php on line 1919<br /> %PDF-1.3 %���� 1 0 obj &lt;&gt; endobj 2 0 obj &lt;&gt; endobj 3 0 obj &lt;&lt; /Type /Pages /Kids [6 0 R 10 0 R ] /Count 2 /Resources &lt;&lt; /ProcSet 4 0 R /Font &lt;&gt; &gt;&gt; /MediaBox [0.000 0.000 841.890 595.280] &gt;&gt; endobj 4 0 obj [/PDF /Text ] endobj 5 0 obj &lt;&gt; endobj 6 0 obj &lt;&gt; endobj 7 0 obj &lt;&gt; stream x���Ms�0��� ۋ�V��R���$�M�ލ-�:`5&#8243;�?�?� m�2�.{��}W�]M&gt;DU�R�JfIQ��5&#8242;(#ņ���j9�&#8221;�w�bq���H�_dQL2T�����蛧2�HjO��s�d��ס��)Tkٕ� ��2W��ɟb&#8217;�����7U(��t�B�RVRmz�Ɵ��E�o�:�8� P�_Gc��O6����SxV��;Gm��U�N*�yˁ�.�p����|�F��mo�ކ-^���V�VM�ai��=U����r�^I��:e| �C�R�Z�Q�Ӏ� �I�_�/G�P� endstream endobj 8 0 obj &lt;&gt; endobj 9 0 obj &lt;&gt; stream x���Mo�8���&lt;���z���&quot;�Q[-У�V�.�����/%��L����y_��y��u3-�e4W�(chf)6��=&#039;�QF�����&amp;�O2/n��3A�1�x�t˄����e,�d����R����82 !���e��+7�2iM%L���.��z��2��≾��ӡޓ[ȅe��W�V�md�ZQ%/R���٬YNM���]Ev%Y�����.�*���JȀ���J2X�hϰ����o��(}���a�L��CIj����y�0�&lt;�x���3��fl��a�*@�ͼ��y�4=&quot;&quot; ���%�����=&quot;&quot; c����,���)�q�j����g�=&quot;&quot; a�g�n*��}}&#039;��z&lt;�wҕ�c�@ߡ����;ԕ�;Ԕ�;�2���$�̈́���r�wq��;4ɵ��f�}���=&quot;�3&quot; }�nf��dn)����nd�*�=&quot;&quot; ��]̫09�!��+*�2�=&quot;��R���$�*I�W4���r�k�xE�\�5���:^�@��&quot; ��f�xu�z�q�ww�=&quot;&quot; ����݆b|k�wl��*^9�+�j�f�����,������#���vz�e9��pb�=&quot;&quot; �c��3\��=&quot;+�AL�a�g&amp;��`�1&quot; �=&quot;&quot; �&amp;�ٰ�+�fj��y�l�yp6�-����߳�����l=&quot;&quot; ���0гz6��x=&quot;&quot; f`{6��@])6p�s�r�������9t̂?�g9.���8Е}�k�f�%�]���=&quot;&quot; 18��p��wi�7%�m��Ę+yb��t﷧�@~t�r�=&quot;&quot; 3���z&#039;�����{1��x��݄i�$dr9�do�cmq���\�._�ͥ�gjph���8pfj*�n!��=&quot;R���$R�����-z=�B���d�;�g���?�,4�\�2�!Ϙ���LW�&quot; ��#=&quot;&quot; x&lt;�@�g8��,�a�3�l��8��ɨ+�f�o�%u���7���8�f�=&quot;&quot; �{v��1�8�@�e�%a���=&quot;&quot; ?�p�����rjsa^i7�Бkavd��r��2躁pǍh��~$t=&quot;&quot; ��=&quot;&quot; �ҏd�l�,���h����o��~$t*.ۺj?)3�|��fb�v��=&quot;&quot; j?*=&quot;&quot; �myg�ލdj��u)��pik?(�h���n���a��h#�*c��j�͏t&quot;5j0�4j�?����=&quot;&quot; endstream=&quot;&quot; endobj=&quot;&quot; 10=&quot;&quot; 0=&quot;&quot; obj=&quot;&quot; &lt;&gt; endobj 11 0 obj &lt;&gt; stream x��2�300P@&amp;�ҹ�,�\����`b�gjd�`jf�gil�����,nj�gl endstream endobj xref 0 12 0000000000 65535 f 0000000015 00000 n 0000000080 00000 n 0000000126 00000 n 0000000287 00000 n 0000000316 00000 n 0000000421 00000 n 0000000494 00000 n 0000001049 00000 n 0000001156 00000 n 0000002433 00000 n 0000002498 00000 n trailer &lt;&gt; startxref 2632 %%EOF</p> ]]></content:encoded> </item> <item><title>By: Rodwyn</title><link>http://blog.unijimpe.net/generar-pdf-con-php/comment-page-8/#comment-44355</link> <dc:creator>Rodwyn</dc:creator> <pubDate>Mon, 26 Dec 2011 23:02:16 +0000</pubDate> <guid isPermaLink="false">http://blog.unijimpe.net/generar-pdf-con-php/#comment-44355</guid> <description>yo tengo un problema tan basico como:Warning: include(ejemplos/class.ezpdf.php) [function.include]: failed to open stream: No such file or directory in C:\AppServ\www\ejemplos\pdf01.php on line 10Warning: include() [function.include]: Failed opening &#039;ejemplos/class.ezpdf.php&#039; for inclusion (include_path=&#039;.;C:\php5\pear&#039;) in C:\AppServ\www\ejemplos\pdf01.php on line 10Fatal error: Class &#039;Cezpdf&#039; not found in C:\AppServ\www\ejemplos\pdf01.php on line 11 que debo hacer????</description> <content:encoded><![CDATA[<p>yo tengo un problema tan basico como:</p><p>Warning: include(ejemplos/class.ezpdf.php) [function.include]: failed to open stream: No such file or directory in C:\AppServ\www\ejemplos\pdf01.php on line 10</p><p>Warning: include() [function.include]: Failed opening &#8216;ejemplos/class.ezpdf.php&#8217; for inclusion (include_path=&#8217;.;C:\php5\pear&#8217;) in C:\AppServ\www\ejemplos\pdf01.php on line 10</p><p>Fatal error: Class &#8216;Cezpdf&#8217; not found in C:\AppServ\www\ejemplos\pdf01.php on line 11<br /> que debo hacer????</p> ]]></content:encoded> </item> <item><title>By: jok3r</title><link>http://blog.unijimpe.net/generar-pdf-con-php/comment-page-8/#comment-43748</link> <dc:creator>jok3r</dc:creator> <pubDate>Fri, 18 Nov 2011 22:50:41 +0000</pubDate> <guid isPermaLink="false">http://blog.unijimpe.net/generar-pdf-con-php/#comment-43748</guid> <description>si, de nuevo yo! D: el problema anterior ya pude resolverlo gracias... ahor avengo con uno nuevo u.U se trata de que genero un pdf y así ahora lo que se muestra son cantidades .. problema: los muestra como numeros tal cual... si quisiera que los mostrara con formato de cantidad/moneda se puede?</description> <content:encoded><![CDATA[<p>si, de nuevo yo! D: el problema anterior ya pude resolverlo gracias&#8230;<br /> ahor avengo con uno nuevo u.U<br /> se trata de que genero un pdf y así ahora lo que se muestra son cantidades ..<br /> problema: los muestra como numeros tal cual&#8230;<br /> si quisiera que los mostrara con formato de cantidad/moneda se puede?</p> ]]></content:encoded> </item> <item><title>By: jok3rcit0</title><link>http://blog.unijimpe.net/generar-pdf-con-php/comment-page-8/#comment-43293</link> <dc:creator>jok3rcit0</dc:creator> <pubDate>Tue, 01 Nov 2011 18:00:27 +0000</pubDate> <guid isPermaLink="false">http://blog.unijimpe.net/generar-pdf-con-php/#comment-43293</guid> <description>Hola, Muy buen post!! Solo tengo una consulta espero me puedas ayudar... Como podría agregar imágenes para el Formato de mi PDF ? Por ejemplo en vez que diga &quot;Meses en PHP &quot; aparezca una Imagen! agradezco todo el apoyo que brindas</description> <content:encoded><![CDATA[<p>Hola,<br /> Muy buen post!!<br /> Solo tengo una consulta espero me puedas ayudar&#8230;<br /> Como podría agregar imágenes para el Formato de mi PDF ?<br /> Por ejemplo en vez que diga &#8220;Meses en PHP &#8221;<br /> aparezca una Imagen!<br /> agradezco todo el apoyo que brindas</p> ]]></content:encoded> </item> <item><title>By: ivan</title><link>http://blog.unijimpe.net/generar-pdf-con-php/comment-page-8/#comment-43243</link> <dc:creator>ivan</dc:creator> <pubDate>Fri, 28 Oct 2011 17:30:28 +0000</pubDate> <guid isPermaLink="false">http://blog.unijimpe.net/generar-pdf-con-php/#comment-43243</guid> <description>estoy usando la libreria ezpdf pero me gustaria saber cual es el metodo para insetar una imagen  este es el codigo que genere selectFont(&#039;fonts/Helvetica.afm&#039;); $datacreator = array ( &#039;Title&#039;=&gt;&#039;Acuse de Recibido&#039;, &#039;Author&#039;=&gt;&#039;UAEH&#039;, &#039;Subject&#039;=&gt;&#039;DGC&#039;, &#039;Creator&#039;=&gt;&#039;GESTION DE LA CALIDAD&#039;, &#039;Producer&#039;=&gt;&#039;http://www.uaeh.edu.mx&#039; ); $pdf-&gt;addinfo($datacreator); $data[] = array(&#039;col1&#039;=&gt;&#039;DE:&#039;, &#039;col2&#039;=&gt;$_POST[&#039;dependencia&#039;]);$pdf-&gt;addInfo($datacreator); $data[] = array(&#039;col1&#039;=&gt;&#039;DEPENDENCIA:&#039;, &#039;col2&#039;=&gt;$_POST[&#039;dependencia&#039;]); $data[] = array(&#039;col1&#039;=&gt;&#039;SOLICITANTE:&#039;, &#039;col2&#039;=&gt; $_POST[&#039;nombre&#039;]); $data[] = array(&#039;col1&#039;=&gt;&#039;PUESTO:&#039;, &#039;col2&#039;=&gt;$_POST[&#039;puesto&#039;]); $data[] = array(&#039;col1&#039;=&gt;&#039;E-MAIL:&#039;, &#039;col2&#039;=&gt; $_POST[&#039;email&#039;]); $data[] = array(&#039;col1&#039;=&gt;&#039;DOCUMENTOS:&#039;, &#039;col2&#039;=&gt;&#039;VARIABLE DE FORMULARIO&#039;); $data[] = array(&#039;col1&#039;=&gt;&#039;ARCHIVO:&#039;, &#039;col2&#039;=&gt;&#039;VARIABLE DE FORMULARIO&#039;); $data[] = array(&#039;col1&#039;=&gt;&#039;RAZON DE CAMBIO&#039;, &#039;col2&#039;=&gt;$_POST[&#039;razon&#039;]); $data[] = array(&#039;col1&#039;=&gt;&#039;CAMBIO PROPUESTO&#039;, &#039;col2&#039;=&gt;$_POST[&#039;cambio&#039;]); $titles = array(&#039;col1&#039;=&gt;&#039;&lt;b&gt;CAMPOS&lt;/b&gt;&#039;, &#039;col2&#039;=&gt;&#039;&lt;b&gt;DATOS USUARIO&lt;/b&gt;&#039;); $pdf-&gt;ezText(&quot;&lt;b&gt;Universidad Autonoma del Estado de Hidalgo&lt;/b&gt;\n&quot;,16,&#039;center&#039;); $pdf-&gt;ezText(&quot;Direccion de Planeacion\n&quot;,12); $pdf-&gt;ezText(&quot;Direccion de Gestion de la Calidad\n&quot;,12); $pdf-&gt;ezText(&quot;Acuse de Recibido\n&quot;,12); $pdf-&gt;ezTable($data,$titles,&#039;&#039;,$options ); $pdf-&gt;ezText(&quot;\n\n\n&quot;,10); $pdf-&gt;ezText(&quot;&lt;b&gt;Fecha:&lt;/b&gt; &quot;.date(&quot;d/m/Y&quot;),10); $pdf-&gt;ezText(&quot;&lt;b&gt;Hora:&lt;/b&gt; &quot;.date(&quot;H:i:s&quot;).&quot;\n\n&quot;,10); $pdf-&gt;ezStream(); ?&gt;</description> <content:encoded><![CDATA[<p>estoy usando la libreria ezpdf pero me gustaria saber cual es el metodo para insetar una imagen  este es el codigo que genere<br /> selectFont(&#8216;fonts/Helvetica.afm&#8217;);<br /> $datacreator = array (<br /> &#8216;Title&#8217;=&gt;&#8217;Acuse de Recibido&#8217;,<br /> &#8216;Author&#8217;=&gt;&#8217;UAEH&#8217;,<br /> &#8216;Subject&#8217;=&gt;&#8217;DGC&#8217;,<br /> &#8216;Creator&#8217;=&gt;&#8217;GESTION DE LA CALIDAD&#8217;,<br /> &#8216;Producer&#8217;=&gt;&#8217;<a href="http://www.uaeh.edu.mx" rel="nofollow">http://www.uaeh.edu.mx</a>&#8216;<br /> );<br /> $pdf-&gt;addinfo($datacreator);<br /> $data[] = array(&#8216;col1&#8242;=&gt;&#8217;DE:&#8217;, &#8216;col2&#8242;=&gt;$_POST['dependencia']);</p><p>$pdf-&gt;addInfo($datacreator);</p><p>$data[] = array(&#8216;col1&#8242;=&gt;&#8217;DEPENDENCIA:&#8217;, &#8216;col2&#8242;=&gt;$_POST['dependencia']);<br /> $data[] = array(&#8216;col1&#8242;=&gt;&#8217;SOLICITANTE:&#8217;, &#8216;col2&#8242;=&gt; $_POST['nombre']);<br /> $data[] = array(&#8216;col1&#8242;=&gt;&#8217;PUESTO:&#8217;, &#8216;col2&#8242;=&gt;$_POST['puesto']);<br /> $data[] = array(&#8216;col1&#8242;=&gt;&#8217;E-MAIL:&#8217;, &#8216;col2&#8242;=&gt; $_POST['email']);<br /> $data[] = array(&#8216;col1&#8242;=&gt;&#8217;DOCUMENTOS:&#8217;, &#8216;col2&#8242;=&gt;&#8217;VARIABLE DE FORMULARIO&#8217;);<br /> $data[] = array(&#8216;col1&#8242;=&gt;&#8217;ARCHIVO:&#8217;, &#8216;col2&#8242;=&gt;&#8217;VARIABLE DE FORMULARIO&#8217;);<br /> $data[] = array(&#8216;col1&#8242;=&gt;&#8217;RAZON DE CAMBIO&#8217;, &#8216;col2&#8242;=&gt;$_POST['razon']);<br /> $data[] = array(&#8216;col1&#8242;=&gt;&#8217;CAMBIO PROPUESTO&#8217;, &#8216;col2&#8242;=&gt;$_POST['cambio']);</p><p>$titles = array(&#8216;col1&#8242;=&gt;&#8217;<b>CAMPOS</b>&#8216;, &#8216;col2&#8242;=&gt;&#8217;<b>DATOS USUARIO</b>&#8216;);</p><p>$pdf-&gt;ezText(&#8220;<b>Universidad Autonoma del Estado de Hidalgo</b>\n&#8221;,16,&#8217;center&#8217;);<br /> $pdf-&gt;ezText(&#8220;Direccion de Planeacion\n&#8221;,12);<br /> $pdf-&gt;ezText(&#8220;Direccion de Gestion de la Calidad\n&#8221;,12);<br /> $pdf-&gt;ezText(&#8220;Acuse de Recibido\n&#8221;,12);<br /> $pdf-&gt;ezTable($data,$titles,&#8221;,$options );<br /> $pdf-&gt;ezText(&#8220;\n\n\n&#8221;,10);<br /> $pdf-&gt;ezText(&#8220;<b>Fecha:</b> &#8220;.date(&#8220;d/m/Y&#8221;),10);<br /> $pdf-&gt;ezText(&#8220;<b>Hora:</b> &#8220;.date(&#8220;H:i:s&#8221;).&#8221;\n\n&#8221;,10);<br /> $pdf-&gt;ezStream();<br /> ?&gt;</p> ]]></content:encoded> </item> <item><title>By: yeid</title><link>http://blog.unijimpe.net/generar-pdf-con-php/comment-page-8/#comment-43213</link> <dc:creator>yeid</dc:creator> <pubDate>Tue, 25 Oct 2011 22:23:57 +0000</pubDate> <guid isPermaLink="false">http://blog.unijimpe.net/generar-pdf-con-php/#comment-43213</guid> <description>hola yormary... respecto a lo que pides yo ya pasé por ahi,,, adjunto codigo...este crea un pdf prestablecido y recibe unas variables que antes se han llenado..&lt;code&gt; &lt;?phpsession_start(); error_reporting(E_DEPRECATED); error_reporting(E_ERROR);$usuari=  $_SESSION[&#039;usuari&#039;];while (($_SESSION[&#039;usuari&#039;]==&#039;&#039;)or ($_SESSION[&#039;usuari&#039;]==&#039;DESCONOCIDO&#039;)) { /* echo &quot;alert(&#039; \b Usted no puede ver esta p\xe1gina. Antes debe loguearse. \b !  &#039;)&quot;; echo &quot;window.location.href=(&#039;index.php&#039;)&quot;;*/ } include (&#039;carta_unavez.php&#039;); $usuario = $_SESSION[&#039;usuari&#039;];$conn = conectar(); if(validar($usuario,$conn)) { odbc_close($conn); die(&quot; Sistema de gesti&#243;n - Earthborn &#124; Autenticaci&#243;n            de             usuarios &#124; Departamento de sistemas &#124; SERVICR&#201;DITO S.A::: Copyright &#169; 2011 . Todos los derechos reservados. &lt;a href=&quot;cerrarsesion.php&quot; rel=&quot;nofollow&quot;&gt;ir a Inicio&lt;/a&gt; &lt;a href=&quot;http://10.1.1.2:8080/&quot; rel=&quot;nofollow&quot;&gt;volver a Intarnet Corporativa&lt;/a&gt; &quot;); }else { include (&#039;maximo.php&#039;); $conn = conectarmax(); $Codigo_consecutivo = obtenerConsecutivo($conn); odbc_close($conn); } /*if (($_POST[&#039;txtMotivo&#039;]==&#039;&#039;)or  ($_POST[&#039;txtEmpresa&#039;]==&#039;&#039;)) { echo &quot;alert(&#039; \b Usted no puede ver esta p\xe1gina.  \b !  Antes debe llenar los datos del formulario CartaLaboral  &#039;)&quot;; echo &quot;window.location.href=(&#039;CartaLaboral.php&#039;)&quot;; }*//* while (($_POST[&#039;txtMotivo&#039;]==&#039;&#039;)or ($_POST[&#039;txtCiudad&#039;]==&#039;-&#039;)or ($_POST[&#039;txtEmpresa&#039;]==&#039;&#039;)) { echo &quot;alert(&#039; \b Usted no puede ver esta p\xe1gina.  \b !  Antes debe llenar los datos del formulario CartaLaboral  &#039;)&quot;; echo &quot;window.location.href=(&#039;CartaLaboral.php&#039;)&quot;; }*/include_once(&#039;class.ezpdf.php&#039;); require_once(&#039;conexion.php&#039;); require_once (&#039;consultasql.php&#039;);$textomotivo=$_POST[&quot;txtMotivo&quot;]; $textoempresa=$_POST[&quot;txtEmpresa&quot;]; $textociudad=$_POST[&quot;txtCiudad&quot;]; $pdf = new Cezpdf(&#039;Carta&#039;);$pdf-&gt;selectFont(&#039;fonts/Helvetica.afm&#039;,array(&#039;Column1&#039;=&gt; array(&#039;justification&#039;=&gt;&#039;center&#039;,&#039;width&#039;=&gt;200))); $pdf-&gt;setEncryption(&#039;&#039;,&#039;&#039;,array(&#039;print&#039;));//$pdf-&gt;setEncryption(); //no me deja copiar, pegar, ni tampoco IMPRIMIR$pdf-&gt;ezSetCmMargins(3,3,3,3);setlocale(LC_TIME, &#039;Spanish&#039;); $pdf-&gt;ezText(strftime(&quot;\nMedellín, %d de %B de %Y \n\n\n&quot;)); //$pdf-&gt;ezText(&quot;&lt;b&gt;\n\n Medellín, &lt;/b&gt; &quot;.date(&quot;d  F  Y\n\n\n\n&quot;),10);$pdf-&gt;ezText(&quot;Señores,&quot;,12); $pdf-&gt;ezText(&quot;&lt;b&gt;$textoempresa&lt;/b&gt;&quot;,12); $pdf-&gt;ezText(&quot;$textociudad\n\n&quot;,12); $pdf-&gt;ezText(&quot;&lt;b&gt;Asunto:&lt;/b&gt; Certificado laboral\n\n&quot;,12);$pdf-&gt;ezText(&quot;&lt;b&gt;MiEmpresaS.A.&lt;/b&gt; identificado con Nit. 800000000, certifica la información que se detalla a continuación:\n&quot;,12);//{ $pdf-&gt;ezText(&quot;&lt;b&gt;\t\t\t\t\t\tNombre empleado:&lt;/b&gt;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$resultnombre&quot;,12); $pdf-&gt;ezText(&quot;&lt;b&gt;\t\t\t\t\t\tDocumento de identificación:&lt;/b&gt;\t\t\t\t\t\t\t$resultid&quot;,12); $pdf-&gt;ezText(&quot;&lt;b&gt;\t\t\t\t\t\tCargo:&lt;/b&gt;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$resultcargo&quot;,12); $pdf-&gt;ezText(&quot;\t\t\t\t\t\t&lt;b&gt;Tipo de contrato:&lt;/b&gt;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$resultcontrato&quot;,12); $pdf-&gt;ezText(&quot;\t\t\t\t\t\t&lt;b&gt;Fecha de ingreso:&lt;/b&gt;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$resultfecha&quot;,12); $pdf-&gt;ezText(&quot;\t\t\t\t\t\t&lt;b&gt;Salario Mensual:&lt;/b&gt;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $ $resultsalari\n\n&quot;,12); if ($Saldo== 0) { $pdf-&gt;ezText(&quot;En el momento el empleado no presenta endeudamiento con la empresa.      &quot;,12); $pdf-&gt;ezText(&quot;&lt;b&gt;  &lt;/b&gt;&quot;,10); } else { $pdf-&gt;ezText(&quot;En el momento el empleado presenta endeudamiento con la empresa por valor de $ $deuda \n &quot;,12); }$pdf-&gt;ezText(&quot;Se expide esta certificación laboral a solicitud del empleado, para $textomotivo.\n&quot;,12); $pdf-&gt;ezText(&quot;Estaremos  a  su  disposición  para  verificar  la  anterior  información, en  el 4446373 Opción 1 Ext. 125\n\n&quot;,12); $pdf-&gt;ezText(&quot;\nCordialmente,\n\n&quot;,12);$pdf-&gt;ezText(&quot;&lt;b&gt;\n\n\n\n\n\dorotea Facunda&lt;/b&gt;&quot;,12); $pdf-&gt;ezText(&quot;Coordinadora Administrativa \n&quot;,12); }$pdf-&gt;ezText(&quot;                                                                                                                                         CÓDIGO: SVC $Codigo_consecutivo&quot;,8);//$pdf-&gt;addJpegFromFile(&#039;logo.jpg&#039;,200,590,100); //coloca una imagen// $pdf-&gt;ezText(&quot;&lt;b&gt;Hora:&lt;/b&gt; &quot;.date(&quot;H:i:s&quot;),10); // para imprimir la hora del servidor }?&gt;&lt;/code&gt;</description> <content:encoded><![CDATA[<p>hola yormary&#8230; respecto a lo que pides yo ya pasé por ahi,,, adjunto codigo&#8230;</p><p>este crea un pdf prestablecido y recibe unas variables que antes se han llenado..</p><p><code><br /> &lt;?php</p><p>session_start();</p><p> error_reporting(E_DEPRECATED);<br /> error_reporting(E_ERROR);</p><p> $usuari=  $_SESSION[&#039;usuari&#039;];</p><p>while (($_SESSION[&#039;usuari&#039;]==&#039;&#039;)or ($_SESSION[&#039;usuari&#039;]==&#039;DESCONOCIDO&#039;))<br /> { /*<br /> echo &quot;alert(' \b Usted no puede ver esta p\xe1gina. Antes debe loguearse. \b !  ')";<br /> echo "window.location.href=('index.php')";*/<br /> }<br /> include ('carta_unavez.php');<br /> $usuario = $_SESSION['usuari'];</p><p> $conn = conectar();<br /> if(validar($usuario,$conn))<br /> {<br /> odbc_close($conn);</p><p> die("<br /> Sistema de gesti&oacute;n - Earthborn | Autenticaci&oacute;n            de             usuarios | Departamento de sistemas | SERVICR&Eacute;DITO S.A:::<br /> Copyright &copy; 2011 . Todos los derechos reservados.<br /> <a href="cerrarsesion.php" rel="nofollow">ir a Inicio</a><br /> <a href="http://10.1.1.2:8080/" rel="nofollow">volver a Intarnet Corporativa</a></p><p> ");</p><p> }else<br /> {<br /> include ('maximo.php');<br /> $conn = conectarmax();<br /> $Codigo_consecutivo = obtenerConsecutivo($conn);<br /> odbc_close($conn);<br /> }</p><p>/*if (($_POST['txtMotivo']=='')or  ($_POST['txtEmpresa']==''))<br /> {<br /> echo "alert(' \b Usted no puede ver esta p\xe1gina.  \b !  Antes debe llenar los datos del formulario CartaLaboral  ')";<br /> echo "window.location.href=('CartaLaboral.php')";<br /> }*/</p><p>/*<br /> while (($_POST['txtMotivo']=='')or ($_POST['txtCiudad']=='-')or ($_POST['txtEmpresa']==''))<br /> {<br /> echo "alert(' \b Usted no puede ver esta p\xe1gina.  \b !  Antes debe llenar los datos del formulario CartaLaboral  ')";<br /> echo "window.location.href=('CartaLaboral.php')";<br /> }</p><p>*/</p><p>include_once('class.ezpdf.php');<br /> require_once('conexion.php');<br /> require_once ('consultasql.php');</p><p>$textomotivo=$_POST["txtMotivo"];<br /> $textoempresa=$_POST["txtEmpresa"];<br /> $textociudad=$_POST["txtCiudad"];<br /> $pdf = new Cezpdf('Carta');</p><p>$pdf-&gt;selectFont('fonts/Helvetica.afm',array('Column1'=&gt; array('justification'=&gt;'center','width'=&gt;200)));<br /> $pdf-&gt;setEncryption('','',array('print'));</p><p>//$pdf-&gt;setEncryption(); //no me deja copiar, pegar, ni tampoco IMPRIMIR</p><p>$pdf-&gt;ezSetCmMargins(3,3,3,3);</p><p>setlocale(LC_TIME, 'Spanish');<br /> $pdf-&gt;ezText(strftime("\nMedellín, %d de %B de %Y \n\n\n"));<br /> //$pdf-&gt;ezText("<b>\n\n Medellín, </b> ".date("d  F  Y\n\n\n\n"),10);</p><p>$pdf-&gt;ezText("Señores,",12);<br /> $pdf-&gt;ezText("<b>$textoempresa</b>",12);<br /> $pdf-&gt;ezText("$textociudad\n\n",12);<br /> $pdf-&gt;ezText("<b>Asunto:</b> Certificado laboral\n\n",12);</p><p>$pdf-&gt;ezText("<b>MiEmpresaS.A.</b> identificado con Nit. 800000000, certifica la información que se detalla a continuación:\n",12);</p><p>//{<br /> $pdf-&gt;ezText("<b>\t\t\t\t\t\tNombre empleado:</b>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$resultnombre",12);<br /> $pdf-&gt;ezText("<b>\t\t\t\t\t\tDocumento de identificación:</b>\t\t\t\t\t\t\t$resultid",12);<br /> $pdf-&gt;ezText("<b>\t\t\t\t\t\tCargo:</b>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$resultcargo",12);<br /> $pdf-&gt;ezText("\t\t\t\t\t\t<b>Tipo de contrato:</b>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$resultcontrato",12);<br /> $pdf-&gt;ezText("\t\t\t\t\t\t<b>Fecha de ingreso:</b>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$resultfecha",12);<br /> $pdf-&gt;ezText("\t\t\t\t\t\t<b>Salario Mensual:</b>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $ $resultsalari\n\n",12);<br /> if ($Saldo== 0)<br /> {<br /> $pdf-&gt;ezText("En el momento el empleado no presenta endeudamiento con la empresa.      ",12);<br /> $pdf-&gt;ezText("<b> </b>",10);<br /> }<br /> else<br /> {<br /> $pdf-&gt;ezText("En el momento el empleado presenta endeudamiento con la empresa por valor de $ $deuda \n ",12);<br /> }</p><p>$pdf-&gt;ezText("Se expide esta certificación laboral a solicitud del empleado, para $textomotivo.\n",12);<br /> $pdf-&gt;ezText("Estaremos  a  su  disposición  para  verificar  la  anterior  información, en  el 4446373 Opción 1 Ext. 125\n\n",12);<br /> $pdf-&gt;ezText("\nCordialmente,\n\n",12);</p><p>$pdf-&gt;ezText("<b>\n\n\n\n\n\dorotea Facunda</b>",12);<br /> $pdf-&gt;ezText("Coordinadora Administrativa \n",12);<br /> }</p><p>$pdf-&gt;ezText("                                                                                                                                         CÓDIGO: SVC $Codigo_consecutivo",8);</p><p>//$pdf-&gt;addJpegFromFile('logo.jpg',200,590,100); //coloca una imagen</p><p>// $pdf-&gt;ezText("<b>Hora:</b> ".date("H:i:s"),10); // para imprimir la hora del servidor</p><p>}</p><p>?&gt;</p><p></code></p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching using disk: basic

Served from: blog.unijimpe.net @ 2012-02-08 19:54:30 -->
