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

Our test hangs with custom pdf file on operation PDPage.convertToImage()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7.3, 1.1.0, 1.2.0
    • 2.0.0
    • None
    • None
    • Linux, JDK 1.5 Update 22 (32 and 64), JDK 1.5 Update 16
      (works with Linux, JDK 1.6 perfect,
      works with MacOS JDK 1.5 update 13)

    Description

      Our code is:

            String pdfname = "081111.pdf";
            InputStream pdf = Thread.currentThread().getContextClassLoader().getResourceAsStream(pdfname);
            ContentStream stream = new BaseContentStream(pdf, pdfname, new MimeType("application", "pdf"));
      
            PDDocument pdf = PDDocument.load(stream.getStream());
            PDPage page = (PDPage)pdf.getDocumentCatalog().getAllPages().get(0);
            BufferedImage image = page.convertToImage();
      ...
      

      Attachments

        1. 081111.pdf
          245 kB
          Alexey Zavizionov

        Issue Links

          Activity

            People

              lehmi Andreas Lehmkühler
              exoman Alexey Zavizionov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: