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