Hi,
We are using spire.pdf version 8.11.8. For some PDF's we get an OOM with the following stacktrace:
java.lang.OutOfMemoryError: Java heap space
at java.base/java.util.Arrays.copyOf(Arrays.java:3720)
at java.base/java.util.Arrays.copyOf(Arrays.java:3689)
at com.spire.ms.System.Collections.Generic.List.setCapacity(List.java:480)
at com.spire.ms.System.Collections.Generic.List.spr╻∭(List.java:63)
at com.spire.ms.System.Collections.Generic.List.addItem(List.java:55)
at com.spire.ms.System.Collections.Generic.List.add(List.java:577)
at com.spire.pdf.packages.sprvsn.spr┲╋(Unknown Source)
at com.spire.pdf.packages.sprvsn.spr⑄═(Unknown Source)
at com.spire.pdf.packages.sprvsn.spr©╋(Unknown Source)
at com.spire.pdf.packages.sprvsn.spr┛╋(Unknown Source)
at com.spire.pdf.packages.sprvsn.spr╗║(Unknown Source)
at com.spire.pdf.packages.sprvoo.spr┭╻(Unknown Source)
at com.spire.pdf.packages.sprvoo.spr┼╺(Unknown Source)
at com.spire.pdf.packages.sprvoo.spr◑╺(Unknown Source)
at com.spire.pdf.conversion.PdfStandardsConverter.toPdfA1B(Unknown Source)
It is not clear to us why we get this OOM for certain PDF's. We have it for example for a PDF of size 173 KB. For other larger PDF's we don't have any problem.
Is there a way to find out what is causing the OOM by enabling for example some logging or so?
Regards,
Guy Wens