Can I use annotaions (e.g. U3D) as part of an OCG Layer ?

Skip to first unread message


Aug 8, 2013, 1:52:16 PM8/8/13
I would like to put some U3d content on a PDF Layer. I tried to add an “OC” key to the “Subtype=U3d” annotation dict, but Adobe Reader does not seem to take it into account. Is it possible ? Please could you tell me how to do it?

You can embed U3D as discussed in the following article ( U3D files can only be used in form of 3D annotations (sect 13.6.2 in ISO32000).



According to the spec, any annotation can be added to specific OCMD via OC entry in annotation dictionary. Before the annotation is drawn, its visibility is determined based on this entry as well as the annotation flags specified in the F entry. If it is determined to be invisible, the annotation should be skipped, as if it were not in the document.

I am not sure if Acrobat respects this key though. If you find any sample PDF that behaves as you would expect (e.g. in Acrobat) you can use CosEdit ( to inspect the structure of the annotation and OCMD dictionary and recreate the same structure in your code.

Reply all
Reply to author
0 new messages