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