I’ve been trying to build a PDF that contains a simple graphic (square) with two “Object Data” properties. (Leonard R pointed me in the right direction).

 

I have about 50 lines of code that seems to be writing all the right elements into the StructTreeRoot dictionary and all the right Marked Content operators into the content stream (as far as I can tell).

 

When I open the resulting PDF in Acrobat (after manually setting the UserProperties value in the MarkInfo dictionary using PDFCanOpener) the Object Data Tool doesn’t recognise my shape as an object.

 

Is there someone who has the time to look at my code and see what I’ve got wrong?

 

Thanks

Alan Keown

Reply via email to