You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Cheng Chen (JIRA)" <ji...@apache.org> on 2016/03/30 23:47:25 UTC

[jira] [Created] (PDFBOX-3297) Infinite loop

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: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org