[
https://issues.apache.org/jira/browse/PDFBOX-6191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18073820#comment-18073820
]
valery commented on PDFBOX-6191:
--------------------------------
The fix
{code:java}
imageableWidth * scale{code}
is not enough when the original scale was not 1 (e.g. SHRINK_TO_FIT), because
the image is sized as
{code:java}
imageableWidth * dpiScale / originalScale{code}
, which is larger than
{code:java}
imageableWidth * dpiScale{code}
I've checked the version
{code:java}
if (image != null)
{
graphics2D.setClip(0, 0, image.getWidth(), image.getHeight());
}
else
{
graphics2D.setClip(0, 0, (int)imageableWidth, (int)imageableHeight);
}{code}
and, as for me, it is still not enough good.
> Print border doesn't work if using rastering
> --------------------------------------------
>
> Key: PDFBOX-6191
> URL: https://issues.apache.org/jira/browse/PDFBOX-6191
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.36, 3.0.7 PDFBox
> Reporter: Tilman Hausherr
> Priority: Major
> Attachments: Paulmann-70919_V01-MaxLED-Universal-Verbinder.pdf,
> image-2026-04-15-06-35-11-685.png, printout-300dpi.pdf
>
>
> As discovered by [~vbokov] in PR440
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]