[
https://issues.apache.org/jira/browse/PDFBOX-5802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17835127#comment-17835127
]
Tilman Hausherr edited comment on PDFBOX-5802 at 4/9/24 3:19 AM:
-----------------------------------------------------------------
in PageDrawer after dispose() and before the mask is applied, a 85x85 rectangle
is white.
If we force the PDFBOX-5403 workaround (which is really just for the
PDFBOX-2171 file) when the mask is 1x1 AND the pixel is -1, then the 85x85
rectangle is black and the result is good and so is the PDFBOX-2171 file.
However...
This image most likely comes from "Root/Pages/Kids/[0]/Resources/Pattern/R24"
where there is a 1x1 inline image with content 00, i.e. black.
So maybe the real problem isn't in pagedrawer at all, it's the colorspace of
that image, there's an error message, and it uses DeviceGray instead.
was (Author: tilman):
in PageDrawer after dispose() and before the mask is applied, a 85x85 rectangle
is white.
If we force the PDFBOX-5403 workaround (which is really just for the
PDFBOX-2171 file) when the mask is 1x1 AND the pixel is -1, then the 85x85
rectangle is black and the result is good and so is the PDFBOX-2171 file.
However...
This image most likely comes from "Root/Pages/Kids/[0]/Resources/Pattern/R24"
where there is a 1x1 inline image with content 00, i.e. black.
So maybe the real problem isn't in pagedrawer at all, it's the colorspace,
there's an error message, and it uses DeviceGray instead.
> Black rectangle over image
> --------------------------
>
> Key: PDFBOX-5802
> URL: https://issues.apache.org/jira/browse/PDFBOX-5802
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.27, 2.0.31, 3.0.2 PDFBox
> Reporter: Oliver Schmidtmer
> Priority: Major
> Labels: regression
> Attachments: AR24-0275VS-1_0001.pdf,
> image-2024-04-08-19-30-46-411.png, image-2024-04-08-19-35-43-407.png,
> image-2024-04-08-19-38-22-778.png
>
>
> The attached PDF has a black rectangle in the upper right, at parts over an
> image.
> This appears since 2.0.27, probably through the mask rendering changes in
> PDFBOX-5403.
> The image itself is rendered better after this change, still not perfect.
> 2.0.27+:
> !image-2024-04-08-19-30-46-411.png!
> 2.0.26:
> !image-2024-04-08-19-35-43-407.png!
> Acrobat:
> !image-2024-04-08-19-38-22-778.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]