PDFsharp & MigraDoc Forum

PDFsharp - A .NET library for processing PDF & MigraDoc - Creating documents on the fly
It is currently Fri Sep 26, 2025 8:00 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules

Also see our new Tailored Support & Services site.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Nov 02, 2012 5:19 pm 
Offline

Joined: Wed Jul 18, 2012 1:03 pm
Posts: 7
Hi,

I have troube with some pdf files. If I create a pdf with pdfsharp and Im using a special font, a font that is just on my system and nowhere else, the created pdf is looking different on other systems. Im doing something like this:

Code:
gfx.DrawString("my string", new XFont("some special font", size), ...);


I think its because you cannot display a font if its not installed on your system. So on a system where this "special font" is not available the pdf is just displaying another standard font. How can I avoid this? Is there a way to embed a font in the pdf? I dont want to convert a font to an image and insert the image into the pdf, because its not more a vector graphic. Some suggestions? Thx


Top
 Profile  
Reply with quote  
PostPosted: Sat Nov 03, 2012 11:28 am 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 354
Hi!

Use XPdfFontOptions.

See the Unicode sample:
http://www.pdfsharp.net/wiki/Unicode-sample.ashx

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 05, 2012 9:42 am 
Offline

Joined: Wed Jul 18, 2012 1:03 pm
Posts: 7
Ah thats nice, thank you.


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 633 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