How to get PDOCG from PDEElement?

New Here ,
Mar 19, 2019

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

TOPICS
Acrobat SDK and JavaScript

Views

216

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How to get PDOCG from PDEElement?

New Here ,
Mar 19, 2019

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

TOPICS
Acrobat SDK and JavaScript

Views

217

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Mar 19, 2019 0
lrosenth LATEST
Adobe Employee ,
Mar 19, 2019

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Mar 19, 2019 0