Hi,
we are using aspose PDF for java to create thumbnail from PDF:
Document file = new Document(fileContent);
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
JpegDevice jpegDevice = new JpegDevice(100);
jpegDevice.process(file.getPages().get_Item(1), outputStream);
Sometimes it happens that our thread stuck and in thread dump we could find
- com.aspose.pdf.internal.ms.System.Collections.Generic.Il.containsKey(java.lang.Object) @bci=95 (Compiled frame; information may be imprecise)
- com.aspose.pdf.internal.l74.I0l.lI(java.lang.String) @bci=11 (Interpreted frame)
- com.aspose.pdf.internal.l74.I0l.lif(java.lang.String, com.aspose.pdf.internal.ms.System.Collections.Generic.I27, com.aspose.pdf.internal.ms.System.Collections.Generic.I27, com.aspose.pdf.internal.l247.II) @bci=2 (Interpreted frame)
- com.aspose.pdf.internal.l74.I0l.lif(com.aspose.pdf.internal.l15l.I27, com.aspose.pdf.internal.l15l.I37, boolean, boolean) @bci=673 (Compiled frame)
- com.aspose.pdf.internal.l74.I0l.lif(com.aspose.pdf.internal.l3I.I01, com.aspose.pdf.internal.l4I.I11, com.aspose.pdf.internal.l26l.I1l, com.aspose.pdf.internal.l7l.I07[]) @bci=19 (Interpreted frame)
- com.aspose.pdf.devices.I7.lif(com.aspose.pdf.internal.l7l.I07[]) @bci=846 (Interpreted frame)
- com.aspose.pdf.devices.I7.lif() @bci=13 (Interpreted frame)
- com.aspose.pdf.devices.ImageDevice.lif(com.aspose.pdf.Page) @bci=147 (Interpreted frame)
- com.aspose.pdf.devices.JpegDevice.processInternal(com.aspose.pdf.Page, com.aspose.pdf.internal.ms.System.IO.Stream) @bci=2 (Interpreted frame)
- com.aspose.pdf.devices.JpegDevice.process(com.aspose.pdf.Page, java.io.OutputStream) @bci=11 (Interpreted frame)