[
https://issues.apache.org/jira/browse/PDFBOX-5322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17444646#comment-17444646
]
Tilman Hausherr commented on PDFBOX-5322:
-----------------------------------------
It's a java problem. It does not happen with jdk8 but with 11 and 17 and 18. I
tried to reproduce it with java but failed, maybe I missed something.
{code}
BufferedImage bim = new BufferedImage(623, 311, BufferedImage.TYPE_INT_RGB);
Graphics2D g2d = (Graphics2D) bim.getGraphics();
g2d.setClip(new Rectangle(623, 311));
g2d.setBackground(Color.white);
g2d.clearRect(0, 0, bim.getWidth(), bim.getHeight());
g2d.setColor(Color.black);
g2d.transform(new AffineTransform(1f, 0f, 0f, -1f, 0, 311f));
GeneralPath path = new GeneralPath();
path.moveTo(438.5315f, 261.2291f);
path.curveTo(437.8919f, 265.3086f, 437.6903f, 265.3338f, 437.6903f, 265.3338f);
path.curveTo(437.5043f, 265.3571f, 437.3822f, 265.2621f, 437.3822f, 265.2621f);
g2d.setStroke(new BasicStroke(1, BasicStroke.CAP_BUTT, BasicStroke.JOIN_MITER));
g2d.draw(path);
g2d.dispose();
ImageIO.write(bim, "png", ....));
{code}
> PDFDebugger: Strange zoom depending fill/clipping artefact
> ----------------------------------------------------------
>
> Key: PDFBOX-5322
> URL: https://issues.apache.org/jira/browse/PDFBOX-5322
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering, Swing GUI
> Affects Versions: 2.0.24
> Reporter: Emmeran Seehuber
> Priority: Minor
> Attachments: PDFBOX-5322_reduced.pdf,
> buggy_shape_operation_order_fixed.pdf, image-2021-11-15-19-00-01-859.png,
> image-2021-11-15-19-00-24-192.png, kartenvorschau2871641668946630670.pdf
>
>
> The attached (test) PDF is not rendered correctly in the PDFBox Debugger, at
> least on MacOS with both Azul-17 and Azul-11 JDKs.
> The way it is misrendered is depending on the zoom level. It seems fine at
> 150%, but buggy on all other zoom levels.
> 100%:
> !image-2021-11-15-19-00-01-859.png|width=335,height=184!
> 200%:
> !image-2021-11-15-19-00-24-192.png|width=365,height=195!
>
> It renders fine on Adobe Acrobat and MacOS Preview. (The text is exported as
> vector shapes)
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]