<?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/"
	>

<channel>
	<title>Agence de Développement Informatique du Nord &#187; FPDF</title>
	<atom:link href="http://blog.adin.pro/category/fpdf-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.adin.pro</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Thu, 26 Dec 2019 08:54:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.1.1</generator>
	<item>
		<title>FPDF error: This document (docuement.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI.</title>
		<link>http://blog.adin.pro/2016-07-28/fpdf-error-this-document-docuement-pdf-probably-uses-a-compression-technique-which-is-not-supported-by-the-free-parser-shipped-with-fpdi/</link>
		<comments>http://blog.adin.pro/2016-07-28/fpdf-error-this-document-docuement-pdf-probably-uses-a-compression-technique-which-is-not-supported-by-the-free-parser-shipped-with-fpdi/#comments</comments>
		<pubDate>Thu, 28 Jul 2016 09:13:21 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[FPDF]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=517</guid>
		<description><![CDATA[<p>If you ever encounter this error &#8220;FPDF error: This document (docuement.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI.&#8221;, this is a version problem, FPDF library supports only PDF version 1.4 and &#8230; <a href="http://blog.adin.pro/2016-07-28/fpdf-error-this-document-docuement-pdf-probably-uses-a-compression-technique-which-is-not-supported-by-the-free-parser-shipped-with-fpdi/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2016-07-28/fpdf-error-this-document-docuement-pdf-probably-uses-a-compression-technique-which-is-not-supported-by-the-free-parser-shipped-with-fpdi/">FPDF error: This document (docuement.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI.</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>If you ever encounter this error &#8220;FPDF error: This document (docuement.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI.&#8221;, this is a version problem, FPDF library supports only PDF version 1.4 and previous.</p>
<p>So, what can you do ? change PDF version with ghostscript.</p>
<p>Download it here http://www.ghostscript.com/download/gsdnld.html</p>
<p>run to change :</p>
<pre class="brush: bash; title: ; notranslate">
 ./gs-919-linux_x86_64 -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dNOPAUSE -dQUIET -dBATCH -sOutputFile=file.pdf newfile.pdf 
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2016-07-28/fpdf-error-this-document-docuement-pdf-probably-uses-a-compression-technique-which-is-not-supported-by-the-free-parser-shipped-with-fpdi/">FPDF error: This document (docuement.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI.</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2016-07-28/fpdf-error-this-document-docuement-pdf-probably-uses-a-compression-technique-which-is-not-supported-by-the-free-parser-shipped-with-fpdi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fpdf € transform into ? with UTF-8</title>
		<link>http://blog.adin.pro/2013-10-06/fpdf-e-transform-into-with-utf-8/</link>
		<comments>http://blog.adin.pro/2013-10-06/fpdf-e-transform-into-with-utf-8/#comments</comments>
		<pubDate>Sun, 06 Oct 2013 14:34:00 +0000</pubDate>
		<dc:creator><![CDATA[blogadmin]]></dc:creator>
				<category><![CDATA[FPDF]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[fpdf]]></category>

		<guid isPermaLink="false">http://blog.adin.pro/?p=296</guid>
		<description><![CDATA[<p>You try to write a € character on your pdf doc but it is transformed into a &#8220;?&#8221;. You can replace it by the chr(128) sign. When the sign is inside a string, you can use this But you have &#8230; <a href="http://blog.adin.pro/2013-10-06/fpdf-e-transform-into-with-utf-8/">Continue reading <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2013-10-06/fpdf-e-transform-into-with-utf-8/">fpdf € transform into ? with UTF-8</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>You try to write a € character on your pdf doc but it is transformed into a &#8220;?&#8221;.<br />
You can replace it by the chr(128) sign.</p>
<pre class="brush: php; title: ; notranslate">
$this-&gt;MultiCell(170, $this-&gt;hh, $price.&quot; &quot;.chr(128), 0, 'L', false);
</pre>
<p>When the sign is inside a string, you can use this</p>
<pre class="brush: php; title: ; notranslate">
$contenu = str_replace('€', chr(128), $contenu);
$this-&gt;MultiCell(170, $this-&gt;hh, $contenu, 0, 'L', false);
</pre>
<p>But you have special characters too, you need to encode string into UTF-8</p>
<pre class="brush: php; title: ; notranslate">
$contenu = str_replace('€', chr(128), $contenu);
$this-&gt;MultiCell(170, $this-&gt;hh, utf8_decode($contenu), 0, 'L', false);
</pre>
<p>This works well for &#8220;é&#8221; or &#8220;ç&#8221; but not for &#8220;€&#8221;.<br />
The ultimate solution is :</p>
<pre class="brush: php; title: ; notranslate">
$contenu = str_replace('€', utf8_encode(chr(128)), $contenu);
$this-&gt;MultiCell(170, $this-&gt;hh, utf8_decode($contenu), 0, 'L', false);
</pre>
<p>The post <a rel="nofollow" href="http://blog.adin.pro/2013-10-06/fpdf-e-transform-into-with-utf-8/">fpdf € transform into ? with UTF-8</a> appeared first on <a rel="nofollow" href="http://blog.adin.pro">Agence de Développement Informatique du Nord</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.adin.pro/2013-10-06/fpdf-e-transform-into-with-utf-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
