PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Sep 27, 2024 1:20 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Jul 20, 2010 7:26 am 
Offline

Joined: Tue Jul 20, 2010 7:20 am
Posts: 1
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


Top
 Profile  
Reply with quote  
PostPosted: Tue Jul 20, 2010 8:16 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3110
Location: Cologne, Germany
Hi!
There is no simple PDFsharp solution for your problem.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 151 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