Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-3297

Infinite loop

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.11, 1.8.12, 2.0.0, 2.0.1, 3.0.0 PDFBox
    • 1.8.12, 2.0.1, 3.0.0 PDFBox
    • Rendering
    • None

    Description

      For this PDF file attached, this function will hang:

      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); }

      }

      Attachments

        1. infinite_loop.pdf
          70 kB
          Cheng Chen

        Issue Links

          Activity

            People

              tilman Tilman Hausherr
              ChengChen Cheng Chen
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: