Click here to Skip to main content
12,401,324 members (30,447 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB VB.NET
Dear friends,

i am developing window application to process pdf 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 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[^]

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

Thanks in Advance
Posted 18-Apr-13 21:54pm
Updated 18-Apr-13 22:56pm
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160721.1 | Last Updated 19 Apr 2013
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100