Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.