PDFsharp & MigraDoc Foundation http://forum.pdfsharp.com/ |
|
Changing a font of an existing PDF http://forum.pdfsharp.com/viewtopic.php?f=2&t=1270 |
Page 1 of 1 |
Author: | pponzano [ Tue Jul 20, 2010 7:26 am ] |
Post subject: | Changing a font of an existing PDF |
Hello, I have to help a colleague to change the pdf present inside a pdf, I explain... he generates PDF using Crystal Reports 10.2 and the font that CR includes are an Arial embedded subset, the pdf has to be sent to a partner that should process it, we need to embed the whole arial font set and I tought of using PDFSharp to change it... but actually with no luck.... Actually my simple code is : Code: static void Main(string[] args) { PdfSharp.Pdf.PdfDocument doc = PdfReader.Open("c:\\temp\\ifmadreportrr1_portrait.pdf"); PdfSharp.Pdf.PdfPage page = doc.Pages[0]; var gfx = XGraphics.FromPdfPage(page,XGraphicsPdfPageOptions.Append); gfx.MFEH = PdfFontEmbedding.Always; gfx.Save(); doc.Save("c:\\temp\\input3.pdf"); } but it won't change the subset... Any suggestion? Thanks |
Author: | Thomas Hoevel [ Tue Jul 20, 2010 8:16 am ] |
Post subject: | Re: Changing a font of an existing PDF |
Hi! There is no simple PDFsharp solution for your problem. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |