Skip to main content
Participant
March 19, 2019
Question

How to get PDOCG from PDEElement?

  • March 19, 2019
  • 1 reply
  • 464 views

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 has been closed for replies.

1 reply

lrosenth
Adobe Employee
Adobe Employee
March 19, 2019

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.