[ 
https://issues.apache.org/jira/browse/PDFBOX-5851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17867290#comment-17867290
 ] 

Tilman Hausherr commented on PDFBOX-5851:
-----------------------------------------

The problem is here:
{noformat}
  /P12 scn
  /P12 SCN
  0.75 0 0 -0.75 0 1584 cm
  58 1056 200 200 re
  f
{noformat}
/P12 is a pattern. What's missing here is to set this to a pattern colorspace. 
The PDF created by the CreatePatterns.java example looks like this:
{noformat}
50 500 200 200 re
/cs1 cs  <==== this is missing
/p1 scn
f
{noformat}
I have to think whether this can be fixed somehow. What I understand is that 
Chrome considers it to be a pattern colorspace, while Adobe just ignores it. 
And PDFBox uses the black default color.

> When this PDF is rendered with the "f" Operator, a black screen appears.
> ------------------------------------------------------------------------
>
>                 Key: PDFBOX-5851
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5851
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Rendering
>    Affects Versions: 3.0.2 PDFBox
>            Reporter: liu
>            Priority: Major
>         Attachments: image-2024-07-19-16-58-35-439.png, 
> image-2024-07-19-16-58-57-515.png, image-2024-07-19-17-41-18-618.png, 
> image2.pdf
>
>
> [^image2.pdf]
> !image-2024-07-19-16-58-35-439.png|width=345,height=187!
> !image-2024-07-19-16-58-57-515.png|width=214,height=277!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to