Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear friends,

i am developing window application to process pdf file.in my application pdf viewed through pdf reader control.I want to get the value of Tagged Pdf(after opened the pdf in adobe just press ctrl+d.in the description Value of Tagged Pdf showned.For eg.,Tagged Pdf:NO)..

How to parse the value of Tagged Pdf?

i have google it and i got the below relevent link.But i don't know how close is to my question and i don't know java

http://itextpdf.com/examples/iia.php?id=281[^]

Can anyone have idea to get Tagged Pdf value ?Please post your valuable answer and comments.

Thanks in Advance
Posted
Updated 18-Apr-13 22:56pm
v3
Comments
jai_mca 6-May-13 5:49am    
no one know the answer????
after a long while i found the exact answer..
refer the below code


The StructTreeRoot is a mandatory element for a Tagged PDF:

PdfDictionary root = reader.Catalog;
PdfObject structTreeRoot = root.Get(PdfName.STRUCTTREEROOT);
If structTreeRoot equals null, then your PDF isn't tagged.

Additionally, you need to check for the MarkInfo property.

PdfDictionary markInfo = root.GetAsDict(PdfName.MARKINFO);
This markInfo dictionary may not be null, it needs a Marked entry. The value of this entry needs to be a Boolean and it needs to be true.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900