Well, that's what I thought: I have to add the chapter to the document
first before...
I WILL get the book but I don't have it right now so that I can't read it
this moment. That's why I have to ask. :-)
br
Dirk
>
> -------- Original-Nachricht --------
> Datum: Fri, 24 Nov 2006 12:38:39 +0100
> Von: "Bruno Lowagie (iText)" <[EMAIL PROTECTED]>
> An: Post all your questions about iText here
> <[email protected]>
> Betreff: Re: [iText-questions] How to draw a horizontal line at a
> arbitrary psoition?
>
> Dirk Ulrich wrote:
> > The problem is, that the line is drawed as the first element of the pdf
> > document and not at the position as expected. Is it because the
> Chapter,
> > Sections, ... I created before creating/drawing the line are still in
> > memory and I didn't add the Chapter to the document before trying to
> > draw the line?
>
> Elementary, my dear Watson!
> PdfWriter.getVerticalPosition gives you the current Y position.
> As long as you don't add the Chapter, the writer doesn't know
> anything about it.
>
> > You know: I have one big Chapter adding Sections to it (to get
> > numbering). In one Section I want to draw the line following further
> > sections. After completing cunstructing all sections I want to add the
> > Chapter to the Document.
>
> So you keep telling me. Likewise I will keep telling you
> that section 14.2 in the book explains how to retrieve
> the Y position where every chapter/section begins/ends.
> Or you could try reading the javadocs and the free online
> tutorial instead of saying iText lacks proper documentation,
> see you mail of 20/11/2006-13:51 ;-)
>
> best regards,
> Bruno
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
>
--
Mit freundlichen Grüßen
Dirk Ulrich
Jansenstraße 21
13437 Berlin
fon:0++49-(0)30-40 999 087
mobil:++49-(0)174/948 87 39
"Ein Herz für Kinder" - Ihre Spende hilft! Aktion: www.deutschlandsegelt.de
Unser Dankeschön: Ihr Name auf dem Segel der 1. deutschen America's Cup-Yacht!
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/