2005 IR Help Posted August 26, 2006 Share Posted August 26, 2006 By: tanade - tanessawad Export to PDF file in THAI font.Possible? 2004-05-20 20:19 Hi guy I need to export the report to PDF file in Thai character.But i can't see any font and any encode for THAI character.How to do this thing? Anyone who know some solutions please help me. Thanks a lot tanade PS. I try to use true type font and identify-H encoding but it doesn't work. By: Paulo Soares - psoares33 RE: Export to PDF file in THAI font.Possible? 2004-05-21 05:26 The encoding is "Identity-H". Use a font with the Thai characters like arialuni.ttf. By: tanade - tanessawad RE: Export to PDF file in THAI font.Possible? 2004-05-23 20:56 thank for your help psoares33.But when i did follow your suggestion it doesn't work.When i use adobe acrobat to open the file it showed error "There was error opening document".i don't know i did anything wrong?This is some xml.Please help me again. Thanks for your help <textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single"> <font fontName="CordiaUPC" pdfFontName="arialuni.ttf" size="14" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Identity-H" isStrikeThrough="false" /> </textElement> By: Paulo Soares - psoares33 RE: Export to PDF file in THAI font.Possible? 2004-05-24 03:17 pdfFontName must be the full path to the font either on file or as a resource. Are you sure no exception is thrown and you have an incomplete pdf? Other frequent problem is that the static text is ok but the text retrieved from the database is not in the correct encoding and doesn't show correctly. By: tanade - tanessawad RE: Export to PDF file in THAI font.Possible? 2004-05-24 04:35 Thanks a bunch, psoares33. Using full path is a big pain in the a**. Is it possible that we can use relative path ? If a relative path isn't allowed in "pdfFontName", can we use it somewhere else ? Like in a resource ? What is a resource and how to use it ,bytheway ? :) Thanks very much again ... By: Paulo Soares - psoares33 RE: Export to PDF file in THAI font.Possible? 2004-05-24 04:44 You can use relative paths but the question is: relative to what? You don't want to go that way. Another option is to put the ttf somewhere accessible by the classpath either in the lib or classes dir. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now