<?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"
	>
<channel>
	<title>Comments on: PHP to PDF conversion with TCPDF</title>
	<atom:link href="http://www.akamarketing.com/blog/109-php-to-pdf-conversion-with-tcpdf.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.akamarketing.com/blog/109-php-to-pdf-conversion-with-tcpdf.html</link>
	<description>Blogged thoughts, not just any other wordpress blog!</description>
	<pubDate>Tue, 07 Feb 2012 13:36:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Deva Karthik</title>
		<link>http://www.akamarketing.com/blog/109-php-to-pdf-conversion-with-tcpdf.html#comment-109634</link>
		<dc:creator>Deva Karthik</dc:creator>
		<pubDate>Sat, 18 Sep 2010 13:21:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.akamarketing.com/blog/109-php-to-pdf-conversion-with-tcpdf.html#comment-109634</guid>
		<description>Thanks for a good tutorial</description>
		<content:encoded><![CDATA[<p>Thanks for a good tutorial</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vasya</title>
		<link>http://www.akamarketing.com/blog/109-php-to-pdf-conversion-with-tcpdf.html#comment-106710</link>
		<dc:creator>Vasya</dc:creator>
		<pubDate>Wed, 04 Aug 2010 06:49:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.akamarketing.com/blog/109-php-to-pdf-conversion-with-tcpdf.html#comment-106710</guid>
		<description>Hello. Help deal with TCPDF, I encountered the following problem: 
for example 006 from the developer's site TCPDF created a page and a variable $ view assigns a value to a variable that stores the html code of constructing a table and then calls perememennuyu $ view to create a pdf document using the function TCPDF writeHTML. 
As a result, generates an empty strnaitsa format PDF. 

What? Where mistake? 

If variable $ view directly assign any HTML table as a string variable (ie, $ view = ' 
  Hello World !!!   ';), all performed with a bang for a few seconds. 

Where mistake??</description>
		<content:encoded><![CDATA[<p>Hello. Help deal with TCPDF, I encountered the following problem:<br />
for example 006 from the developer&#8217;s site TCPDF created a page and a variable $ view assigns a value to a variable that stores the html code of constructing a table and then calls perememennuyu $ view to create a pdf document using the function TCPDF writeHTML.<br />
As a result, generates an empty strnaitsa format PDF. </p>
<p>What? Where mistake? </p>
<p>If variable $ view directly assign any HTML table as a string variable (ie, $ view = &#8216;<br />
  Hello World !!!   &#8216;;), all performed with a bang for a few seconds. </p>
<p>Where mistake??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sovit</title>
		<link>http://www.akamarketing.com/blog/109-php-to-pdf-conversion-with-tcpdf.html#comment-105682</link>
		<dc:creator>Sovit</dc:creator>
		<pubDate>Fri, 16 Jul 2010 07:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.akamarketing.com/blog/109-php-to-pdf-conversion-with-tcpdf.html#comment-105682</guid>
		<description>SetCreator(PDF_CREATOR);
$pdf-&#62;SetAuthor('Nicola Asuni');
$pdf-&#62;SetTitle('TCPDF Example 039');
$pdf-&#62;SetSubject('TCPDF Tutorial');
$pdf-&#62;SetKeywords('TCPDF, PDF, example, test, guide');
// set default header data
$pdf-&#62;SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 039', PDF_HEADER_STRING);
// set header and footer fonts
$pdf-&#62;setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf-&#62;setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
// set default monospaced font
$pdf-&#62;SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
//set margins
$pdf-&#62;SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf-&#62;SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf-&#62;SetFooterMargin(PDF_MARGIN_FOOTER);
//set auto page breaks
$pdf-&#62;SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
//set image scale factor
$pdf-&#62;setImageScale(PDF_IMAGE_SCALE_RATIO);
//set some language-dependent strings
$pdf-&#62;setLanguageArray($l);
// ---------------------------------------------------------
// add a page
$pdf-&#62;AddPage();
// set font
$pdf-&#62;SetFont('helvetica', 'B', 20);
$pdf-&#62;Write(0, 'Example of HTML Justification', '', 0, 'C', true, 0, false, false, 0);
// create some HTML content
$i=0;
$html = '';
//$i=mysql_num_rows($q_cat);
$html .= '';
$i=0;
while($row_cat=mysql_fetch_array($q_cat))
{
	if(($i%4)==0)
	{
	 $html .= '';	
	  $html .= '';			
	 break;
	 
	}
$html .= '
		';
   
	
}
$html .= '';
$html .= '';
// set core font
$pdf-&#62;SetFont('helvetica', '', 10);
// output the HTML content
$pdf-&#62;writeHTML($html, true, 0, true, true);
$pdf-&#62;Ln();
// set UTF-8 Unicode font
//$pdf-&#62;SetFont('dejavusans', '', 10);
// output the HTML content
//$pdf-&#62;writeHTML($html, true, 0, true, true);

// reset pointer to the last page
$pdf-&#62;lastPage();

// ---------------------------------------------------------

//Close and output PDF document
$pdf-&#62;Output('example_039.pdf', 'I');

//============================================================+
// END OF FILE                                                
//============================================================+
?&#62;</description>
		<content:encoded><![CDATA[<p>SetCreator(PDF_CREATOR);<br />
$pdf-&gt;SetAuthor(&#8217;Nicola Asuni&#8217;);<br />
$pdf-&gt;SetTitle(&#8217;TCPDF Example 039&#8242;);<br />
$pdf-&gt;SetSubject(&#8217;TCPDF Tutorial&#8217;);<br />
$pdf-&gt;SetKeywords(&#8217;TCPDF, PDF, example, test, guide&#8217;);<br />
// set default header data<br />
$pdf-&gt;SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.&#8217; 039&#8242;, PDF_HEADER_STRING);<br />
// set header and footer fonts<br />
$pdf-&gt;setHeaderFont(Array(PDF_FONT_NAME_MAIN, &#8221;, PDF_FONT_SIZE_MAIN));<br />
$pdf-&gt;setFooterFont(Array(PDF_FONT_NAME_DATA, &#8221;, PDF_FONT_SIZE_DATA));<br />
// set default monospaced font<br />
$pdf-&gt;SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);<br />
//set margins<br />
$pdf-&gt;SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);<br />
$pdf-&gt;SetHeaderMargin(PDF_MARGIN_HEADER);<br />
$pdf-&gt;SetFooterMargin(PDF_MARGIN_FOOTER);<br />
//set auto page breaks<br />
$pdf-&gt;SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);<br />
//set image scale factor<br />
$pdf-&gt;setImageScale(PDF_IMAGE_SCALE_RATIO);<br />
//set some language-dependent strings<br />
$pdf-&gt;setLanguageArray($l);<br />
// &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
// add a page<br />
$pdf-&gt;AddPage();<br />
// set font<br />
$pdf-&gt;SetFont(&#8217;helvetica&#8217;, &#8216;B&#8217;, 20);<br />
$pdf-&gt;Write(0, &#8216;Example of HTML Justification&#8217;, &#8221;, 0, &#8216;C&#8217;, true, 0, false, false, 0);<br />
// create some HTML content<br />
$i=0;<br />
$html = &#8221;;<br />
//$i=mysql_num_rows($q_cat);<br />
$html .= &#8221;;<br />
$i=0;<br />
while($row_cat=mysql_fetch_array($q_cat))<br />
{<br />
	if(($i%4)==0)<br />
	{<br />
	 $html .= &#8221;;<br />
	  $html .= &#8221;;<br />
	 break;</p>
<p>	}<br />
$html .= &#8216;<br />
		&#8216;;</p>
<p>}<br />
$html .= &#8221;;<br />
$html .= &#8221;;<br />
// set core font<br />
$pdf-&gt;SetFont(&#8217;helvetica&#8217;, &#8221;, 10);<br />
// output the HTML content<br />
$pdf-&gt;writeHTML($html, true, 0, true, true);<br />
$pdf-&gt;Ln();<br />
// set UTF-8 Unicode font<br />
//$pdf-&gt;SetFont(&#8217;dejavusans&#8217;, &#8221;, 10);<br />
// output the HTML content<br />
//$pdf-&gt;writeHTML($html, true, 0, true, true);</p>
<p>// reset pointer to the last page<br />
$pdf-&gt;lastPage();</p>
<p>// &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>//Close and output PDF document<br />
$pdf-&gt;Output(&#8217;example_039.pdf&#8217;, &#8216;I&#8217;);</p>
<p>//============================================================+<br />
// END OF FILE<br />
//============================================================+<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sovit</title>
		<link>http://www.akamarketing.com/blog/109-php-to-pdf-conversion-with-tcpdf.html#comment-105681</link>
		<dc:creator>Sovit</dc:creator>
		<pubDate>Fri, 16 Jul 2010 07:12:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.akamarketing.com/blog/109-php-to-pdf-conversion-with-tcpdf.html#comment-105681</guid>
		<description>Hi All,

         I  am creating a Dynamic PDF(Using DB) with tha help of  tcpdf . I have to show 4 image in row .but it is not diplaying .plez helpme  
i m posting my code as well


SetCreator(PDF_CREATOR);
$pdf-&#62;SetAuthor('Nicola Asuni');
$pdf-&#62;SetTitle('TCPDF Example 039');
$pdf-&#62;SetSubject('TCPDF Tutorial');
$pdf-&#62;SetKeywords('TCPDF, PDF, example, test, guide');
// set default header data
$pdf-&#62;SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 039', PDF_HEADER_STRING);
// set header and footer fonts
$pdf-&#62;setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
$pdf-&#62;setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA));
// set default monospaced font
$pdf-&#62;SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
//set margins
$pdf-&#62;SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);
$pdf-&#62;SetHeaderMargin(PDF_MARGIN_HEADER);
$pdf-&#62;SetFooterMargin(PDF_MARGIN_FOOTER);
//set auto page breaks
$pdf-&#62;SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);
//set image scale factor
$pdf-&#62;setImageScale(PDF_IMAGE_SCALE_RATIO);
//set some language-dependent strings
$pdf-&#62;setLanguageArray($l);
// ---------------------------------------------------------
// add a page
$pdf-&#62;AddPage();
// set font
$pdf-&#62;SetFont('helvetica', 'B', 20);
$pdf-&#62;Write(0, 'Example of HTML Justification', '', 0, 'C', true, 0, false, false, 0);
// create some HTML content
$i=0;
$html = '';
//$i=mysql_num_rows($q_cat);
$html .= '';
$i=0;
while($row_cat=mysql_fetch_array($q_cat))
{
	if(($i%4)==0)
	{
	 $html .= '';	
	  $html .= '';			
	 break;
	 
	}
$html .= '
		';
   
	
}
$html .= '';
$html .= '';
// set core font
$pdf-&#62;SetFont('helvetica', '', 10);
// output the HTML content
$pdf-&#62;writeHTML($html, true, 0, true, true);
$pdf-&#62;Ln();
// set UTF-8 Unicode font
//$pdf-&#62;SetFont('dejavusans', '', 10);
// output the HTML content
//$pdf-&#62;writeHTML($html, true, 0, true, true);

// reset pointer to the last page
$pdf-&#62;lastPage();

// ---------------------------------------------------------

//Close and output PDF document
$pdf-&#62;Output('example_039.pdf', 'I');

//============================================================+
// END OF FILE                                                
//============================================================+
?&#62;</description>
		<content:encoded><![CDATA[<p>Hi All,</p>
<p>         I  am creating a Dynamic PDF(Using DB) with tha help of  tcpdf . I have to show 4 image in row .but it is not diplaying .plez helpme<br />
i m posting my code as well</p>
<p>SetCreator(PDF_CREATOR);<br />
$pdf-&gt;SetAuthor(&#8217;Nicola Asuni&#8217;);<br />
$pdf-&gt;SetTitle(&#8217;TCPDF Example 039&#8242;);<br />
$pdf-&gt;SetSubject(&#8217;TCPDF Tutorial&#8217;);<br />
$pdf-&gt;SetKeywords(&#8217;TCPDF, PDF, example, test, guide&#8217;);<br />
// set default header data<br />
$pdf-&gt;SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.&#8217; 039&#8242;, PDF_HEADER_STRING);<br />
// set header and footer fonts<br />
$pdf-&gt;setHeaderFont(Array(PDF_FONT_NAME_MAIN, &#8221;, PDF_FONT_SIZE_MAIN));<br />
$pdf-&gt;setFooterFont(Array(PDF_FONT_NAME_DATA, &#8221;, PDF_FONT_SIZE_DATA));<br />
// set default monospaced font<br />
$pdf-&gt;SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);<br />
//set margins<br />
$pdf-&gt;SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT);<br />
$pdf-&gt;SetHeaderMargin(PDF_MARGIN_HEADER);<br />
$pdf-&gt;SetFooterMargin(PDF_MARGIN_FOOTER);<br />
//set auto page breaks<br />
$pdf-&gt;SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);<br />
//set image scale factor<br />
$pdf-&gt;setImageScale(PDF_IMAGE_SCALE_RATIO);<br />
//set some language-dependent strings<br />
$pdf-&gt;setLanguageArray($l);<br />
// &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
// add a page<br />
$pdf-&gt;AddPage();<br />
// set font<br />
$pdf-&gt;SetFont(&#8217;helvetica&#8217;, &#8216;B&#8217;, 20);<br />
$pdf-&gt;Write(0, &#8216;Example of HTML Justification&#8217;, &#8221;, 0, &#8216;C&#8217;, true, 0, false, false, 0);<br />
// create some HTML content<br />
$i=0;<br />
$html = &#8221;;<br />
//$i=mysql_num_rows($q_cat);<br />
$html .= &#8221;;<br />
$i=0;<br />
while($row_cat=mysql_fetch_array($q_cat))<br />
{<br />
	if(($i%4)==0)<br />
	{<br />
	 $html .= &#8221;;<br />
	  $html .= &#8221;;<br />
	 break;</p>
<p>	}<br />
$html .= &#8216;<br />
		&#8216;;</p>
<p>}<br />
$html .= &#8221;;<br />
$html .= &#8221;;<br />
// set core font<br />
$pdf-&gt;SetFont(&#8217;helvetica&#8217;, &#8221;, 10);<br />
// output the HTML content<br />
$pdf-&gt;writeHTML($html, true, 0, true, true);<br />
$pdf-&gt;Ln();<br />
// set UTF-8 Unicode font<br />
//$pdf-&gt;SetFont(&#8217;dejavusans&#8217;, &#8221;, 10);<br />
// output the HTML content<br />
//$pdf-&gt;writeHTML($html, true, 0, true, true);</p>
<p>// reset pointer to the last page<br />
$pdf-&gt;lastPage();</p>
<p>// &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>//Close and output PDF document<br />
$pdf-&gt;Output(&#8217;example_039.pdf&#8217;, &#8216;I&#8217;);</p>
<p>//============================================================+<br />
// END OF FILE<br />
//============================================================+<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: منتديات</title>
		<link>http://www.akamarketing.com/blog/109-php-to-pdf-conversion-with-tcpdf.html#comment-104439</link>
		<dc:creator>منتديات</dc:creator>
		<pubDate>Sat, 26 Jun 2010 22:12:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.akamarketing.com/blog/109-php-to-pdf-conversion-with-tcpdf.html#comment-104439</guid>
		<description>Hi, after installing a few weeks ago, I am trying out SrWare IRON on WinXP today for development. It seems to be using the Adobe PDF viewer plugin - I stopped using that program a while ago but I assume the plugin is still on the system. Point is, with iron, I can make a change to the code, switch to iron and hit F5 to see the results. It’s fast too!</description>
		<content:encoded><![CDATA[<p>Hi, after installing a few weeks ago, I am trying out SrWare IRON on WinXP today for development. It seems to be using the Adobe PDF viewer plugin - I stopped using that program a while ago but I assume the plugin is still on the system. Point is, with iron, I can make a change to the code, switch to iron and hit F5 to see the results. It’s fast too!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

