You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/10/11 01:55:36 UTC
[jira] [Closed] (PDFBOX-2081) Lines that exceeds clipping area are
not drawn
[ https://issues.apache.org/jira/browse/PDFBOX-2081?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Hewson closed PDFBOX-2081.
-------------------------------
Resolution: Not a Problem
This might be improved in 2.0 now that we're using anti-aliasing for all rendering. Otherwise it's just a quirk of Java's anti-aliasing algorithm, one workaround would be to render at a high DPI and then scale the image down as a bitmap operation, perhaps using Lanczos resampling.
> Lines that exceeds clipping area are not drawn
> ----------------------------------------------
>
> Key: PDFBOX-2081
> URL: https://issues.apache.org/jira/browse/PDFBOX-2081
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.0
> Reporter: Juraj Lonc
> Attachments: Obyčajné zásielky.pdf, rendered_(missing_lines).png, rendered_(with_null_clipping).png
>
>
> PDF contains shapes that are partly on the paper and partly outside (shape overflows paper borders).
> Those shapes are not rendered to image.
> It is caused by clipping area.
> When I replace line in PDFDrawer.strokePath()
> {noformat}
> graphics.setClip(getGraphicsState().getCurrentClippingPath());
> {noformat}
> to
> {noformat}
> graphics.setClip(null);
> {noformat}
> then everything is rendered correctly.
> Possibly bug in Java?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)