OpenDocument4all - Info and tools about OpenDocument
Saturday, 26 May 2012
Home arrow Forum
Forum Statistics
Total user: 91
Total message: 181
Main Menu
Home
My Blog
AODL - Project
AODC - Project
OO Development & Info
Forum
About OpenDocument ...
Search
News
Contact Us
Login Form





Lost Password?
No account yet? Register
Sourceforge.net

SourceForge.net - Goto the project homepage
Project site on SF.net

 

Demand OpenDocument

 

Countomat Webcounter und Webstatistik (Statistik & Logfileanalyse, Counter)

OpenDocument4all-Forum

 
Encoding PDF export issue
Date: 2007/05/29 22:25 By: Fanda Talavašek Status: User  
Karma: 0  
Fresh Boarder

Posts: 2
graphgraph
Hi Lars,

i am trying to transform ODT file into PDF and i find a little "problem". My ODT document contain national characters (i created for my testing special text with czech and russia characters).

Now I am able to create good-looking PDF with one of the characters group - only czech or russia - by explicit charset definition:

Code:

 class AODL.ExternalExporter.PDF.Document.StyleConverter.DefaultDocumentStyles method private void LoadDefaultTextFont() (line 139)   ...   if(FontFactory.Contains(fontName.InnerText))   {       //this._defaultTextFont = FontFactory.GetFont(fontName.InnerText );     this._defaultTextFont FontFactory.GetFont(fontName.InnerText"CP1250");   }                             else   {     ...


for czech charset or "CP1251" for russia Cyrillic alphabet.

I am on the beghining of my searching, so it is possible i am looking to bad places or whole my testing is going wrong way. Could you take me a piece of information or any help.


Thank you
Fanny
The administrator has disabled public write access.

Re:Encoding PDF export issue
Date: 2007/06/06 20:56 By: Fanda Talavašek Status: User  
Karma: 0  
Fresh Boarder

Posts: 2
graphgraph
so any success is here:

Code:

 this._defaultTextFont FontFactory.GetFont(fontName.InnerTextiTextSharp.text.pdf.BaseFont.IDENTITY_Hsize);



thie means using UTF-16 encoding as default. this is shown at http://itextdocs.lowagie.com/tutorial/

Post edited by: fanyyb, at: 2007/06/06 21:14
The administrator has disabled public write access.

Quick jump
Download area
Who's Online
We have 11 guests online
Polls
Should AODL and AODC also implement export as PDF and RTF?
 
Popular
© 2005 MamboZ. All rights reserved.