I have been trying to read marked content back in iText 2.1.7.

Marketcontent.pdf was written by the code in Appendix F of the first
edition Itext in Action book.

 

How do I read the PdfStructureTreeRoot back from the tagged PDF?

 

I did the following:

 

PdfReader reader = new PdfReader("marked_content.pdf");

PdfDictionary catalog = reader.getCatalog();

PRIndirectReference treeRoot =
(PRIndirectReference)catalog.get(PdfName.STRUCTTREEROOT);

(I have tried PdfDictionary treeRoot =
(PdfDictionary)catalog.get(PdfName.STRUCTTREEROOT, getting class casting
issue).

 

By looking at treeRoot, it is almost empty, cannot find the tree nodes
e1,e2,e3 and their content.

 

What is the rups?  Can I get tree structure back using rups without GUI?

Again, how do I read PdfStructureTreeRoot from a tagged pdf file?

 

Thank you very much!

 

Tom

 



Chenping Ni | Infogix, Inc. 
phone 630-505-5415 |  fax 630-505-1812  
[email protected] | www.infogix.com

NOTICE: This e-mail message and any included attachments are from Infogix, Inc. 
("Infogix") and are intended solely for use by the individual(s) to whom the 
message was addressed. The information contained herein may include privileged 
or otherwise confidential information. Unauthorized review, forwarding, 
printing, copying, distributing, or using the information contained in this 
message is strictly prohibited. If you have received this message in error, or 
have reason to believe that you are not authorized to receive it, please 
promptly notify the sender by e-mail, delete the message from your computer, 
and do not copy or disclose the information to anyone else. If you properly 
received this e-mail as an addressee, please maintain its contents in 
confidence to protect confidentiality. Thank you.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to