I reviewed section  14.7.4.4 Finding Structure Elements from Content Items
from PDF32000_2008.pdf spec. Especially, this paragraph....

To locate the relevant parent tree entry, each object or content stream that
is represented in the tree shallcontain a special dictionary entry,
StructParent or StructParents (see Table 326). Depending on the type of
content item, this entry may appear in the page object of a page containing
marked-content sequences, in the stream dictionary of a form or image
XObject, in an annotation dictionary, or in any other type of object
dictionary that is included as a content item in a structure element. Its
value shall be the integer key under which the entry corresponding to the
object shall be found in the structural parent tree.

The structParents or strucParent entry can be located by using the following
code snippets

PdfDictionary str = reader.getCatalog().getAsDict(PdfName.STRUCTTREEROOT);
//getting struct parents from page object
PdfDictionary page = reader.getPageN(1);
PdfNumber strNmfromPage =  page.getAsNumber(PdfName.STRUCTPARENTS);

However, I can not seem finding other object dictionary to get structParents
entry...like specified the above paragraph...
in the page object of a page containing marked-content sequences  ---above
code snippet
in the stream dictionary of a form or image XObject  ....no clue
in an annotation dictionary   ....no clue
in any other type of object dictionary that is inlcuded as a content item in
a structure element ...no clue...

Anybody out there please help...?






-- 
View this message in context: 
http://www.nabble.com/Finding-Structure-Elements-from-Content-Items-tp25580957p25580957.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
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