Op 1/12/2010 19:22, jason.l.pel...@rrd.com schreef:
I do notice when trying to select the page numbers in
toc_sample_ok.pdf using Ptistop that they are actually coordinated
next to the listing text but somehow transformed(?) to be viewed over
toward the right.
If you look inside your PDF, then you'll see that the first dotted line
is drawn like this:
q
1 w
1 J
[0 5] 2.5 d
1 w
195.02 735 m
569 735 l
S
Q
This means you define a line width (w) of 1 point, a line cap (J)
rounded, and a line dash (d) with dash size zero and interval 5pt
(dashes start at 2.5 pt). This peculiar line dash in combination with
rounded caps, result in dots. Once you've defined this state, you move
(m) to coordinate (195.02, 735) and construct a line (l) to coordinate
(569, 735). Eventually, you stroke (S) the line.
This is 100% OK and viewers/printers that can't handle this have a bug.
The first piece of text is drawn like this:
36 751 Td
0 -16 Td
/F6 12 Tf
(Additional Benefits Contact List)Tj
/F9 12 Tf
[-31165]TJ
/F6 12 Tf
(9)Tj
Here you move to (36, 751) and then go down 16pt, resulting in a
position at (36, 735); note that the Y-coordinate corresponds with the
line you've drawn. Then you pick a font (Tf) with size 12pt. You show
some text at this position (Tj) and you pick another font. Here
something odd happens. You have a TJ without any text content. This is
probably the separator Chunk. -31165 is measured in Glyph Space. Maybe
that's your problem: maybe some viewers have trouble because the
separator Chunk has a different font...
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
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