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,

Yes, you are correct. When using custom true type fonts while generating PDF documents, it’s best to use the specified properties to increase performance. In fact, your initial post did not include such information, so I wasn’t able to share these details. Anyways, I’m glad to hear that you’ve been able to overcome the performance issue.

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

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