Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

PdfConverter#getNextImage(OutputStream) never returns (infinite loop?)

$
0
0
The attached PDF causes some internal problem with Aspose. getNextImage() never returns, presumably getting stuck in some sort of infinite loop (StackOverflowException isn't thrown for example).

This is troublesome for us, as we need to trust Aspose to at least eventually return, even if it fails.

Example code:

final byte[] bytes = ... // load file
final PdfConverter converter = new PdfConverter();
converter.bindPdf(new ByteArrayInputStream(bytes));
converter.setStartPage(1);
converter.setEndPage(1);
converter.doConvert();

final ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
converter.getNextImage(outputStream);

Viewing all articles
Browse latest Browse all 3131

Trending Articles