PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 10:44 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Font Embedding
PostPosted: Thu Nov 16, 2006 5:00 pm 
Offline

Joined: Thu Nov 16, 2006 4:56 pm
Posts: 3
It would be great if PDFSharp could embed fonts, as far as I can see its not supported yet. Is this correct?


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Nov 16, 2006 10:06 pm 
Offline
empira Employee
User avatar

Joined: Thu Oct 12, 2006 10:07 pm
Posts: 49
Location: Cologne, Germany
You can embed fonts. Use the XFont constructor with XPdfFontOptions as last parameter. Create an XPdfFontOptions(bool embed, bool unicode) for this parameter with embed set to true and the whole font is embedded in the PDF file.


Top
 Profile  
Reply with quote  
 Post subject: Thanks
PostPosted: Fri Nov 17, 2006 10:57 am 
Offline

Joined: Thu Nov 16, 2006 4:56 pm
Posts: 3
Thanks a lot! That works great. I had to drop the unicode parameter for it to work though. Thats possibly because the fonts I was trying to embed weren't unicode encoded? Thanks again, keep up the good work.


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: No registered users and 44 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