Leonard, I've figured out what I was doing wrong. Because I was using the wrong overload of the BeginMarkedSequence method (trying to second-guess Paulo is a bad thing) the ParentTree was not building...
It was, as you said in your original response, "pretty easy". Thanks for your advice, and your time. AlanK -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Leonard Rosenthol Sent: Saturday, 25 March 2006 12:07 AM To: Alan; [email protected] Subject: Re: [iText-questions] Marked Content, Structure and UserProperties... Can't make it work. At 02:56 AM 3/24/2006, Alan wrote: >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? > I can look at the PDF for you - send me the results of running the code... LDR --------------------------------------------------------------------------- Leonard Rosenthol <mailto:[EMAIL PROTECTED]> Chief Technical Officer <http://www.pdfsages.com> PDF Sages, Inc. 215-938-7080 (voice) 215-938-0880 (fax) ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
