Free Support Forum - aspose.com

Performance generating PDF A1-A

We notice that specifying the PDF A1-A format has a huge impact on performance. As we want to generate quite large/complex documents, this is getting in our way. Are there any best practices / tips / tricks to get A1-A documents with maximum performance?

Hello Wiebe,

Sorry for replying you late.

Could you please share the code snippet/project so that we can test the scenario at our end?

In fact there are no such particular tips that can enhance the performance of PDF/A generation process.

We apologize for your inconvenience.

Nayyer,

It's a bit tedious to share the code as it has some dependencies that aren't shared easily.

However, we've overcome most (possibly all) of our problems by including the following bit of code:

pdfDocument.IsCoreFontUsed = false;
pdfDocument.IsTruetypeFontMapCached = true;
pdfDocument.TruetypeFontMapPath = @"D:\etc";

As A1-A requires font embedding this is probably a trick to remember for other users as well.

If we find more problems and/or solutions, we'll keep this forum posted.

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

Yes you are correct. When using custom true type fonts while generating PDF documents, its better to use the above specified properties to increase the performance. In fact, in your initial post no such information was specified so I wasn't able to share such information. Anyways, I'm glad to hear that you've been able to overcome the performance issue.

FYI, You can also find the information regarding usage of IsTruetypeFontMapCached property. Speed up Word to PDF conversion

In case of any further query, please feel free to contact.