Click here to Skip to main content
11,803,019 members (48,820 online)
Rate this: bad
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
Edited 18-Apr-13 22:56pm
jai_mca at 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
0 OriginalGriff 335
1 KrunalRohit 291
2 F-ES Sitecore 270
3 CPallini 270
4 Sergey Alexandrovich Kryukov 234
0 OriginalGriff 2,950
1 Maciej Los 1,910
2 KrunalRohit 1,862
3 CPallini 1,735
4 Richard MacCutchan 1,157

Advertise | Privacy | Mobile
Web02 | 2.8.151002.1 | Last Updated 19 Apr 2013
Copyright © CodeProject, 1999-2015
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