You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "krishna prasad (Jira)" <ji...@apache.org> on 2020/01/21 07:50:00 UTC

[jira] [Created] (PDFBOX-4747) ImageType.BINARY not extracting all charecters

krishna prasad created PDFBOX-4747:
--------------------------------------

             Summary: ImageType.BINARY not extracting all charecters
                 Key: PDFBOX-4747
                 URL: https://issues.apache.org/jira/browse/PDFBOX-4747
             Project: PDFBox
          Issue Type: Bug
          Components: Rendering
    Affects Versions: 2.0.18
         Environment: java 1.8 update 201
            Reporter: krishna prasad
         Attachments: sample.pdf, sample.png

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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org