[
https://issues.apache.org/jira/browse/PDFBOX-5275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17409668#comment-17409668
]
Tilman Hausherr edited comment on PDFBOX-5275 at 9/3/21, 6:57 PM:
------------------------------------------------------------------
It's something with the OCGs... it works if one comments the first line (orange
lines appears).
{code}
%/OC /OC0 BDC
/Cs0 cs
.962 .441 .101 scn
/Gs0 gs
0 0 566.929016 34.015999 re
f
EMC
{code}
The bug is in {{PageDrawer.isHiddenOCMD()}}:
{{Root/Pages/Kids/[4]/Resources/Properties/OC0}} has an empty OCGs array and
this is mishandled, despite that the specification says "If this entry is not
present, is an empty array, or contains references only to null or deleted
objects, the membership dictionary shall have no effect on the visibility of
any content."
was (Author: tilman):
It's something with the OCGs... it works if one comments the first line (orange
lines appears).
{code}
%/OC /OC0 BDC
/Cs0 cs
.962 .441 .101 scn
/Gs0 gs
0 0 566.929016 34.015999 re
f
EMC
{code}
The bug is in OCMD handling... {{Root/Pages/Kids/[4]/Resources/Properties/OC0}}
has an empty OCGs array and this is mishandled, despite that the specification
says "If this entry is not present, is an empty array, or contains references
only to null or deleted objects, the membership dictionary shall have no effect
on the visibility of any content."
> Not rendered (white) pages for given pdf
> ----------------------------------------
>
> Key: PDFBOX-5275
> URL: https://issues.apache.org/jira/browse/PDFBOX-5275
> Project: PDFBox
> Issue Type: Bug
> Components: Rendering
> Affects Versions: 2.0.20, 2.0.24, 2.0.25
> Reporter: Maksym
> Priority: Major
> Labels: regression
> Attachments: PDFBOX-5275-p4.pdf, PDFBOX-5275-p5.pdf, pdf_issue_34.jpg
>
>
> Pages 4 & 5 are rendered as empty (white) but all others look good for the
> following pdf:
> [https://www.dropbox.com/s/rc4hdnvj8p5a2bv/pdf_issue_3.pdf?dl=0]
> Firefox viewer alow shows it as blank but chrome shows correctly.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]