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

ImageType.BINARY not extracting all charecters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 2.0.18
    • None
    • Rendering
    • None
    • java 1.8 update 201

    Description

      I am trying to convert pdfpage to image in binary mode. In the generated Png file one block of complete text not visible. Please find the attachments.

       

      Code used as below

      PDFRenderer renderer = new PDFRenderer(document);

      BufferedImage image = renderer.renderImageWithDPI(0, 300, ImageType.BINARY);

      ImageIO.write(image, "PNG", new File("<filePath>/myimage.png"));

      Attachments

        1. sample.pdf
          275 kB
          krishna prasad
        2. sample.png
          15 kB
          krishna prasad

        Activity

          People

            Unassigned Unassigned
            krishnakittu52 krishna prasad
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: