[ 
https://issues.apache.org/jira/browse/PDFBOX-4826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17109834#comment-17109834
 ] 

Tilman Hausherr commented on PDFBOX-4826:
-----------------------------------------

I forgot one thing, please insert this before the {{draw()}} call
{code:java}
 RenderingHints r = new RenderingHints(null);
 r.put(RenderingHints.KEY_INTERPOLATION, 
RenderingHints.VALUE_INTERPOLATION_BICUBIC);
 r.put(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);
 r.put(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
 graphics.setRenderingHints(r);
 System.out.println(graphics.getRenderingHints()); {code}

> PDF rendering produces distorted images at various DPI
> ------------------------------------------------------
>
>                 Key: PDFBOX-4826
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4826
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.19
>         Environment: Java8, docker container
>            Reporter: Himanshu Pandey
>            Priority: Critical
>              Labels: docker
>         Attachments: 05_-_Form_5_old(1).pdf, 05_-_Form_5_old(1)2-tilman.jpg, 
> 300_DPI.jpeg, 301_DPI.jpeg, PDFBOX-4826-reduced1.pdf, reduced_render.jpeg, 
> render_graphics.jpeg
>
>
> I am getting different output for a pdf document when converting into image.
> At 300 DPI the checkboxes are rendered at random places and have different 
> shapes.
> At 301 or 209 DPI they are being rendered properly. For different DPI it is 
> having this behavior like at 150 DPI it is again distorted and 149 it looks 
> fine. 
>  
> I have attached the pdf. The page number 2 of the pdf document has issues.
>  



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to