PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.de/

Font Embedding
http://forum.pdfsharp.de/viewtopic.php?f=4&t=24
Page 1 of 1

Author:  rossmackenzie [ Thu Nov 16, 2006 5:00 pm ]
Post subject:  Font Embedding

It would be great if PDFSharp could embed fonts, as far as I can see its not supported yet. Is this correct?

Author:  Stefan Lange [ Thu Nov 16, 2006 10:06 pm ]
Post subject: 

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.

Author:  rossmackenzie [ Fri Nov 17, 2006 10:57 am ]
Post subject:  Thanks

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.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/