summaryrefslogtreecommitdiff
path: root/devices
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2023-02-08 17:18:30 +0000
committerRobin Watts <Robin.Watts@artifex.com>2023-02-09 09:59:41 +0000
commit0b1950025dc8bead227a764717c016dbdf27f2ce (patch)
tree8c56df7bc04c4270a766c3be46ba67555571b9d7 /devices
parent83fdfdac1b730c3183eadf04f4e705e34078e4e5 (diff)
downloadghostpdl-0b1950025dc8bead227a764717c016dbdf27f2ce.tar.gz
GhostPDF - Fix visibility of some OCMDs
Bug #706399 "Optional content not drawn when OCMD has empty OCGs" The file uses the BDC operator and the named optional content references an Optional Content Management Dictionary rather than an Optional Content Group. The OCMD has an OCGs member whose value is an empty array. Because it also has no 'P' entry we were defaulting to the 'AnyOn' value. Then we checked each of the (non-existent) OCGs to see if any are 'on'. Since none are, we determined the visibility to be 'off'. However, according to the PDF 1.7 specification, p366, table 4.49, the OCGs entry, if the OCGs are empty (or not present) then the OCMD should 'have no effect'. Its not obvious what that means, exactly, so I've chosen to interpret it as 'should use the OCProperties->D->BaseState as the visibility state'. The BaseState is optional and so (as in this case) may not be present in which case we use the default value of 'on'.
Diffstat (limited to 'devices')
0 files changed, 0 insertions, 0 deletions