Skip to main content
Participant
Mar 19, 2019 8:28 AM UTC
Question

How to get PDOCG from PDEElement?

I am trying to get OCG from PDEElement using PDEElementGetOCMD and PDOCMDGetOCGs however, I am finding return value of PDEElementGetOCMD  always NULL though all objects in PDF are layered.

Please help

Jaydeep

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

lrosenth
Adobe Employee
Adobe Employee
Mar 19, 2019 2:20 PM UTC

Are you seeing this for EVERY PDF that you try or just one?

GetOCMD will only return a valid OCMD if there is one. Perhaps the file you are looking at doesn’t use them and only uses simple OCGs.

Translate