PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Apr 27, 2024 11:12 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Thu Jul 09, 2009 9:37 pm 
Offline

Joined: Thu Jul 09, 2009 9:33 pm
Posts: 4
I am trying to create a pdf wth a few strings no latin chars (russian chars). I am using gfxG.DrawString function.

all that I can see are "?" chars.

any idea ?

thanks
Stefano


Top
 Profile  
Reply with quote  
PostPosted: Fri Jul 10, 2009 8:50 am 
Offline
Supporter

Joined: Fri May 15, 2009 3:28 pm
Posts: 96
are you using a font which contains the russian characters?

? symbols usually appear when the font being used does not contain the particular character you are trying to display. I tend to embed the appropriate unicode fonts in my PDFs or check if they are installed on a users system and use them in the PDF if they are installed.


Top
 Profile  
Reply with quote  
PostPosted: Fri Jul 10, 2009 12:49 pm 
Offline

Joined: Thu Jul 09, 2009 9:33 pm
Posts: 4
I tried to use serveral fonts, at last Courier New. Why using a Courier New I can see the correct string to video and with the same font is not showed on pdf ???
I've XP prof. english languages


Top
 Profile  
Reply with quote  
PostPosted: Fri Jul 10, 2009 2:20 pm 
Offline
Supporter

Joined: Fri May 15, 2009 3:28 pm
Posts: 96
hi, im not too sure what you mean by "string to video"? I would recommend using Arial Unicode as your font - it is licenced, but it has a very large unicode character set. Also search google for russian fonts if you are just using russian as there will probably be a specific russian font which you could use which has no licencing. As russian contains a lot of double-byte characters (for the more complex symbols it uses) the fonts are likely to greatly increase the PDF's filesize, so make sure to only embed fonts if necessary - you can check to see if a user has a font installed on their PC through C# / VB. just have a look on google.


Top
 Profile  
Reply with quote  
PostPosted: Fri Jul 10, 2009 2:32 pm 
Offline

Joined: Thu Jul 09, 2009 9:33 pm
Posts: 4
I want mean that in my application, the string that I used to create the pdf is showed also correctly on ListBox that has a Courier New set font. I can't understand because is not printed correctly on pdf with the same font.

Other thing... At the moment I tested only the russian string, but I can have any language (arabic, china, korean...). I don't think that is a problem font, the standard font installed on windows should support already that charset.


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 13, 2009 9:47 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3096
Location: Cologne, Germany
The Unicode sample that comes with PDFsharp demonstrates Russian (and Greek) characters in PDF documents.

CJK or Arabian characters are not yet supported properly.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Mon Jul 13, 2009 12:11 pm 
Offline

Joined: Thu Jul 09, 2009 9:33 pm
Posts: 4
Thanks, now work :D


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 404 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group