We really need to see the PDF.
--Mark Storer
Senior Software Engineer
Cardiff.com
import legalese.Disclaimer;
Disclaimer<Cardiff> DisCard = null;
________________________________
From: Jason L Pelzel [mailto:jason.l.pel...@rrd.com]
Sent: Tuesday, November 30, 2010 1:44 PM
To: iText-questions@lists.sourceforge.net
Subject: [iText-questions] Help with DottedLineSeperator.
Hi,
I am using the DottedLineSeperator to build a table of contents
(.net version). The result looks fine in Acrobat 7. It also prints file
if direct from Acrobat 7.
However, if viewed in other versions, ripped on the printer, or
optimized from 7 the page number loose their position. Sometimes the are
butted up against the left hand text. Other times the are somewhere in
the middle of the line.
Any hints? Below is the basic code that I am using.
Private Shared Sub ToDocument(ByVal ti As TOCItem, ByVal d As
Document, ByVal f As Font, ByVal level As Integer)
If Not ti.Ignore Then
Dim p As New Paragraph
p.IndentationLeft = level * 20
p.Add(New Phrase(ti.Value, f))
p.Add(New Chunk(New
iTextSharp.text.pdf.draw.DottedLineSeparator))
p.Add(New Chunk(ti.PageNumber, f))
d.Add(p)
level += 1
End If
For Each k As String In ti.SubItems.Keys
TOCItem.ToDocument(ti.SubItems(k), d, f, level)
Next
End Sub
------------------------------------------------------------------------------
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