We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PDF to PDF/A Replace missing font

Hi Team,

Could you please guide us on we can achieve below –

Our customers upload PDF documents on our portal. We need to convert them to PDF/A, while doing so, we need to embed the fonts and replace any missing fonts with some default font .

When we are using document.validate() method (https://docs.aspose.com/pdf/net/convert-pdf-file-to-other-formats/#convert-pdf-file-to-pdf-a) it logs some font related error in xml but found the fonts are embedded.

We are using Aspose.PDF version 17.3

Questions-

  1. How we will come to know which fonts are not embedded and we need to replace them.
  2. How to replace all missing fonts with default font without modifying the formatting of the text (color, bold, italics etc.).
  3. Should not impact any images in the document.

@gajananshinde

Would you kindly try using Aspose.PDF for .NET 20.8 in your environment and share your feedback with whether it resolves your issues or not. In case it does not, please share you sample PDF document with us. We will test the scenario in our environment and address it accordingly. You can check “Set Default Font” article in API documentation as well.