Free Support Forum -

Aspose pdf takes a lot of time in generating the pdfa and the size is also very big

Hi ,
I am using Aspose pdf to generate a pdfa (with weboptimization ) from an input pdf (Original_input.pdf).
Scenario #1
PDFA rendition is generated fine with a size of ~3MB for an input of ~ 3MB.

Scenario #2
I use a third party to add a watermark to the Original_input.pdf and then this pdf (Watermark_input1.pdf) is then, sent as an input to the Aspose PDF. But the PDFA rendition rendered is 150 MB now and it takes a lot of time for the conversion (~10 minutes compared to 1 minute earlier).

Sample Code:-

try {
  com.aspose.pdf.Document document = new com.aspose.pdf.Document("C:\\Users\\Administrator\\Desktop\\D2\\input.pdf");
  PdfFormatConversionOptions opts = new PdfFormatConversionOptions("C:\\Users\\Administrator\\Desktop\\D2\\logFile2.txt", PdfFormat.PDF_A_1A, ConvertErrorAction.Delete);
} catch (Exception e) {
System.out.println("Exception while converting PDF to PDFA compliance : "+e.getMessage());

I can see errors in the log file generated as a part of the PDFA conversion and attaching here.

Please review them as well and let us know, why is so much time and size difference. (5.0 MB)

I cant upload the rendered pdf as the size were too big.

Ankur Vashishtha


We were able to notice a similar issue in our environment while using Aspose.PDF for Java 20.7. Therefore, we have logged it as PDFJAVA-39626 in our issue tracking system. We will further investigate it and keep you posted with its correction status. Please spare us some time.

We are sorry for the inconvenience.

Thanks a lot for the update. This issue is unexpected. Can you please look into this issue and let us know asap.

Ankur Vashishtha


We understand your concerns and will surely take care of them during issue investigation. The issue will be investigated and resolved on first come first serve basis and we will certainly inform you as soon as we have some definite updates regarding its resolution. Please have patience and give us little time.

Hi @asad.ali,
I am aware of the free support queue system but this issue can potentially stop our release since PDFA is a big functionality for us.
Similar use case issue has/ had already been reported to the enterprise support as well.

Please do the investigation and let us know asap.

Ankur Vashishtha


Have you created a new ticket in the paid support forum for the same case? You can simply report reference of this ticket “PDFJAVA-39626” there and it will be escalated accordingly.