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

PDF to Image, faint/dim Images

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.0.0
    • 2.0.9, 3.0.0 PDFBox
    • None
    • 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. PDFBOX-2917__Use_linear_RGB_for_image_color_conversion_to_workaround_JDK_bug.patch
          3 kB
          John Hewson
        2. PDFBOX-2917-v2.patch
          5 kB
          John Hewson
        3. saved0.png
          3.78 MB
          7sam
        4. screenshot-1.png
          489 kB
          Tilman Hausherr
        5. selection.pdf
          1.47 MB
          7sam

        Issue Links

          Activity

            People

              tilman Tilman Hausherr
              slg89 7sam
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: