<?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>Start IT up &#187; Chinmayi</title>
	<atom:link href="http://www.techjini.com/blog/author/chinmayi/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.techjini.com/blog</link>
	<description>The blog of TechJini Solutions</description>
	<lastBuildDate>Sat, 31 Jul 2010 13:31:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How we fixed the UTF-8 supported PDF generation Issue</title>
		<link>http://www.techjini.com/blog/2009/12/15/how-we-fixed-the-utf-8-supported-pdf-generation-issue/</link>
		<comments>http://www.techjini.com/blog/2009/12/15/how-we-fixed-the-utf-8-supported-pdf-generation-issue/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 05:37:07 +0000</pubDate>
		<dc:creator>Chinmayi</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://www.techjini.com/blog/2009/12/15/how-we-fixed-the-utf-8-supported-pdf-generation-issue/</guid>
		<description><![CDATA[ 	 	PDF generation was an old request by one of our client. Our team struggled a lot to solve<a href="http://www.techjini.com/blog/2009/12/15/how-we-fixed-the-utf-8-supported-pdf-generation-issue/" class="searchmore">Read the Rest...</a><div class="clr"></div>]]></description>
			<content:encoded><![CDATA[<p><title></title> 	<!-- 		@page { size: 8.5in 11in; margin: 0.79in } 		P { margin-bottom: 0.08in } 	--> 	<font face="Arial, sans-serif"><font size="2">PDF generation was an old request by one of our client. Our team struggled a lot to solve this.<br />
The root problem was font. We were in need of such font which can support UTF-8 characters. But none of the PHP libraries were having such support by default. Finally we selected TCPDF as the PDF generation library because it has Unicode supports and able to generate UTF-8 PDF in the presence of suitable font.</font></font></p>
<p><strong><font face="Arial, sans-serif"><font size="2">Here are the steps by which we solved this issue.</font></font></strong></p>
<p><font face="Arial, sans-serif"><font size="2">1. Searched the font supported by UTF-8 encoding and selected &#8220;osaka.unicode.ttf&#8221; as it was best matching to our requirement. Copied it into the TCPDF&#8217;s utils folder.<br />
2. Converted it to the font&#8217;s metrics file.<br />
- Changed the font file name to lower case.<br />
- Used a PHP script &#8220;makeallttffonts.php&#8221; to convert the ttf file to font&#8217;s metrics file. This script comes by default with TCPDF.<br />
- Copied generated font map files (only osaka.unicode.ctg.z, osaka.unicode.z, osaka.unicode.php)to the font&#8217;s directory.<br />
3. Used the font name during PDF generation.</font></font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techjini.com/blog/2009/12/15/how-we-fixed-the-utf-8-supported-pdf-generation-issue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
