Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.9, 3.0.0 PDFBox
    • Component/s: None
    • Labels:
    • Environment:
      Windows 8.1, jdk1.8.0_51, jre1.8.0_51

      Description

      pdftoimage.java
      PDDocument document = null;
              File file = new File("F:\\Projects\\java\\pdfbox\\complete.pdf");
              document = PDDocument.load( file );
      
              try {
                  // retrieve image
                  BufferedImage bi = new PDFRenderer(document).renderImageWithDPI( 0 , 150, ImageType.RGB );
                  File outputfile = new File("saved0.png");
                  ImageIO.write(bi, "png", outputfile);
              } catch (IOException e) {
      
              }
      
      
      

        Attachments

        1. selection.pdf
          1.47 MB
          Samuil Goranov
        2. screenshot-1.png
          489 kB
          Tilman Hausherr
        3. saved0.png
          3.78 MB
          Samuil Goranov
        4. PDFBOX-2917-v2.patch
          5 kB
          John Hewson
        5. PDFBOX-2917__Use_linear_RGB_for_image_color_conversion_to_workaround_JDK_bug.patch
          3 kB
          John Hewson

          Issue Links

            Activity

              People

              • Assignee:
                tilman Tilman Hausherr
                Reporter:
                slg89 Samuil Goranov
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: