[ https://issues.apache.org/jira/browse/PDFBOX-2081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14000320#comment-14000320 ]
Juraj Lonc commented on PDFBOX-2081: ------------------------------------ I have also tried to replace {code} graphics.setClip(getGraphicsState().getCurrentClippingPath()); {code} by {code} Rectangle2D rc0=getGraphicsState().getCurrentClippingPath().getBounds2D(); Rectangle2D rc1=new Rectangle2D.Double(rc0.getMinX(), rc0.getMinY(), rc0.getWidth()+1000, rc0.getHeight()); graphics.setClip(rc1); {code} so I made clipping area wider. This "helped" too - lines were rendered. > 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.2#6252)