Op 5/05/2011 20:10, Brendan Ganning schreef:
> As I stated I can get the comments, but ideally I would like to get
> the values 2N1, 01H, 01K
Well, those values are to be retrieved from this content stream:
q
0 0 0 0 k
1 i
/RelativeColorimetric ri
/GS12 gs
82.192 43.137 m
82.192 21.8718 64.9532 4.633 43.688 4.633 c
22.4228 4.633 5.184 21.8718 5.184 43.137 c
5.184 64.4022 22.4228 81.641 43.688 81.641 c
64.9532 81.641 82.192 64.4022 82.192 43.137 c
f*
q
82.692 43.137 m
82.692 21.5957 65.2293 4.133 43.688 4.133 c
22.1467 4.133 4.684 21.5957 4.684 43.137 c
4.684 64.6783 22.1467 82.141 43.688 82.141 c
65.2293 82.141 82.692 64.6783 82.692 43.137 c
W* n
0 0 0 1 K
2 w 10 M 0 j 0 J []0 d
/GS18 gs
82.692 43.137 m
82.692 21.5957 65.2293 4.133 43.688 4.133 c
22.1467 4.133 4.684 21.5957 4.684 43.137 c
4.684 64.6783 22.1467 82.141 43.688 82.141 c
65.2293 82.141 82.692 64.6783 82.692 43.137 c
h
S
Q
/GS19 gs
82.192 43.137 m
82.192 21.8718 64.9532 4.633 43.688 4.633 c
22.4228 4.633 5.184 21.8718 5.184 43.137 c
5.184 64.4022 22.4228 81.641 43.688 81.641 c
64.9532 81.641 82.192 64.4022 82.192 43.137 c
f*
q
82.692 43.137 m
82.692 21.5957 65.2293 4.133 43.688 4.133 c
22.1467 4.133 4.684 21.5957 4.684 43.137 c
4.684 64.6783 22.1467 82.141 43.688 82.141 c
65.2293 82.141 82.692 64.6783 82.692 43.137 c
W* n
0 0 0 1 K
2 w 10 M 0 j 0 J []0 d
/GS20 gs
82.692 43.137 m
82.692 21.5957 65.2293 4.133 43.688 4.133 c
22.1467 4.133 4.684 21.5957 4.684 43.137 c
4.684 64.6783 22.1467 82.141 43.688 82.141 c
65.2293 82.141 82.692 64.6783 82.692 43.137 c
h
S
Q
0 0 0 1 k
/GS21 gs
BT
/T1_3 1 Tf
24 0 0 24 21.6575 37.4273 Tm
(\001\002\022)Tj
ET
0 0 0 0 k
/GS22 gs
95.825 32.9 255.64 21.871 re
f
0 0 0 1 K
1 w 10 M 0 j 0 J []0 d
/GS23 gs
95.825 32.9 255.64 21.871 re
h
S
0 0 0 1 k
BT
/T1_4 1 Tf
14 0 0 14 100.75 38.2191 Tm
(A)Tj
/T1_5 1 Tf
(**/9/43')Tj
0.277 Tc 4.158 0 Td
(1)Tj
-0.025 Tc (;)Tj
0 Tc [(+)1(.)1(/\)1)]TJ
0.2761 Tc (+)Tj
0 Tc [(')1(19)1(+)]TJ
0.024 Tc 5.4691 0 Td
(7)Tj
0 Tc (3)Tj
-0.0011 Tc 0.912 0 Td
(')Tj
0 Tc [(9)1(/)]TJ
-0.025 Tc (;)Tj
0 Tc [(+)1(8)]TJ
ET
Q
Wouldn't you rather retrieve those values from the /Name or /Subj of the
annotation? For instance: In this case, instead of going through the
trouble discovering that you need to find \001\002\022 in the above
syntax snippet and translate it to 01H, wouldn't you better take
nissanIQi-01H and take the part after the hyphen?
It seems like an awful lot of trouble to get the normal (/N) appearance
(/AP) from the Annotation, then get the content stream with the syntax,
parse it to find "a circle", then parse it again to find the text within
that circle and then find out which characters correspond with which
glyphs...
I would vote against such an approach.
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php