Cheng Chen created PDFBOX-3297:
----------------------------------

             Summary: Infinite loop
                 Key: PDFBOX-3297
                 URL: https://issues.apache.org/jira/browse/PDFBOX-3297
             Project: PDFBox
          Issue Type: Bug
    Affects Versions: 2.0.0
            Reporter: Cheng Chen


For this PDF file: 
https://drive.google.com/file/d/0B94QI7pqyvjKeTVxQW05clQ5UHM/view?usp=sharing, 
this function will hang in a infinite loop:

public void testNewVersion() throws IOException {
        PDDocument doc = 
PDDocument.load(PdfVerificationTest.class.getClassLoader().getResource("infinite_loop.pdf").openStream());
       PDFRenderer pdfRenderer = new PDFRenderer(doc);
       for(int i=1;i<doc.getNumberOfPages();i++) {
            pdfRenderer.renderImageWithDPI(i, 300, ImageType.RGB);
      }
    }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to