Hi
I am using Aspose PDF 17.9 to get information of PDF files
Here is my code for test:
boolean result = true;
String fileName = “41_.pdf”;
PdfFileInfo pdfFileInfo = new PdfFileInfo(new FileInputStream(“custom/input/pdf/” + fileName));
result = pdfFileInfo.hasOpenPassword();
Issue:
An exception of OOM will be thrown like this:
Caused by: java.lang.OutOfMemoryError: Java heap space
at com.aspose.pdf.internal.ms.System.IO.z32.m1(Unknown Source)
at com.aspose.pdf.internal.ms.System.IO.z32.m3(Unknown Source)
at com.aspose.pdf.internal.ms.System.IO.z32.write(Unknown Source)
at com.aspose.pdf.internal.p952.z3.m1(Unknown Source)
at com.aspose.pdf.internal.ms.System.IO.Stream.fromJava(Unknown Source)
at com.aspose.pdf.facades.Facade.bindPdf(Unknown Source)
at com.aspose.pdf.facades.PdfFileInfo.(Unknown Source)
at com.aspose.pdf.facades.PdfFileInfo.(Unknown Source)
https://1drv.ms/b/s!AjZYjGcEAKU_g_JyRGOaH7qU8GnkNw
I have uploaded this PDF file.
Please check attachment and this issue. Thank you.
Craig