Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
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 18-Apr-13 22:54pm
jai_mca1.1K
Edited 18-Apr-13 23:56pm
v3
Comments
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 410
1 Sergey Alexandrovich Kryukov 350
2 ProgramFOX 275
3 Maciej Los 275
4 CHill60 260
0 OriginalGriff 360
1 ProgramFOX 265
2 Maciej Los 235
3 CHill60 200
4 RyanDev 170


Advertise | Privacy | Mobile
Web01 | 2.8.150331.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