<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>SisComserv</title>
	<atom:link href="http://siscomserv.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://siscomserv.wordpress.com</link>
	<description>100% de comprometimento com os nossos clientes</description>
	<lastBuildDate>Sun, 06 Dec 2009 12:27:02 +0000</lastBuildDate>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='siscomserv.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>SisComserv</title>
		<link>http://siscomserv.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://siscomserv.wordpress.com/osd.xml" title="SisComserv" />
	<atom:link rel='hub' href='http://siscomserv.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Transformar html em PDF</title>
		<link>http://siscomserv.wordpress.com/2009/07/24/teste/</link>
		<comments>http://siscomserv.wordpress.com/2009/07/24/teste/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 02:17:10 +0000</pubDate>
		<dc:creator>siscomserv</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://siscomserv.wordpress.com/?p=8</guid>
		<description><![CDATA[Algo muito interessante e bastante utilizado que peguei no blog do Igor. Vamos lá! 1º Crie o php com o conteúdo html 2º Agora pra fazer a coisa funcionar, é assim. É só isso “Chamar a função e passar os parâmetros!” Baixe o dompdf aqui<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=siscomserv.wordpress.com&amp;blog=2383822&amp;post=8&amp;subd=siscomserv&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Algo muito interessante e bastante utilizado que peguei no blog do <a href="http://www.igorescobar.com/blog/2009/10/27/convertendo-html-para-pdf-em-php/">Igor</a>. Vamos lá!</p>
<p>1º Crie o php com o conteúdo html</p>
<p><pre class="brush: python;">
&lt;?php
$html = &quot;
    &lt;html&gt;
        &lt;head&gt;&lt;/head&gt;
        &lt;style&gt;
            h1 {color:#333; size:20px; margin-bottom:5px;}
            h3 {color:#222;}
        &lt;/style&gt;
        &lt;body&gt;
            &lt;h1&gt;ldmotta.wordpress.com&lt;/h1&gt;
        &lt;/body&gt;
    &lt;/html&gt;&quot;;
?&gt;
</pre></p>
<p>2º Agora pra fazer a coisa funcionar, é assim.</p>
<p><pre class="brush: python;">
&lt;?php
//Adicione a classe dompdf
require_once(&quot;dompdf/dompdf_config.inc.php&quot;);

//Crie uma nova instância do dompdf
$dompdf = new DOMPDF();

//Carregue o conteúdo hrml
$dompdf-&gt;load_html($html);

//Defina o tamanho do papel
$dompdf-&gt;set_paper('letter', 'landscape');

//E por fim, renderize o arquivo pdf, chamando o method render() e o stream('caminho do arquivo');
$dompdf-&gt;render();

$dompdf-&gt;stream(&quot;exemplo-01.pdf&quot;);
?&gt;
</pre></p>
<p>É só isso “Chamar a função e passar os parâmetros!”</p>
<p>Baixe o dompdf <a href="http://visie.com.br/siscomserv/dompdf/dompdf_demo.rar">aqui</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/siscomserv.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/siscomserv.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/siscomserv.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/siscomserv.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/siscomserv.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/siscomserv.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/siscomserv.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/siscomserv.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/siscomserv.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/siscomserv.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/siscomserv.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/siscomserv.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/siscomserv.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/siscomserv.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=siscomserv.wordpress.com&amp;blog=2383822&amp;post=8&amp;subd=siscomserv&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://siscomserv.wordpress.com/2009/07/24/teste/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b0275fb74044d43618865fc22bb0c778?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">siscomserv</media:title>
		</media:content>
	</item>
	</channel>
</rss>
