Feature enhancement request

We use Aspose to merge pdfs together. We need the created pdf to have all embedded fonts. I would like to request this feature enhancement.

Hi Emily,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for considering Aspose.Pdf.

You can achieve your desired result using Aspose.Pdf DOM API. Please see the following sample code to merge the PDF files and then embed the fonts in the resultant PDF file.

Document doc = new Document("input1.pdf");

Document doc2 = new Document("input2.pdf");

//add pages of second document to the first

doc.Pages.Add(doc2.Pages);

foreach (Page page in doc.Pages)

{

if (page.Resources.Fonts != null)

{

foreach (Aspose.Pdf.Text.Font pageFont in page.Resources.Fonts)

{

if (!pageFont.IsEmbedded)

pageFont.IsEmbedded = true;

}

}

}

doc.Save("result.pdf");

Please check it and let us know if you face any issue. In case you need any further assistance, please feel free to contact support.

Thank You & Best Regards,

Thank you. We’ve been trying to do this for two years and hadn’t found the feature available. I appreciate your assistance. We’ll try using your sample code and see if we can achieve what we need.