[
https://issues.apache.org/jira/browse/PDFBOX-5322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17446551#comment-17446551
]
Tilman Hausherr commented on PDFBOX-5322:
-----------------------------------------
I was able to reproduce it and have filed a bug report (internal review ID :
9072009). I'll attach the link if it gets accepted.
{code}
BufferedImage bim = new BufferedImage(623, 311, BufferedImage.TYPE_INT_RGB);
Graphics2D g2d = (Graphics2D) bim.getGraphics();
g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
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.draw(path);
g2d.dispose();
ImageIO.write(bim, "png", new File("PDFBOX-5322.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]