You can use ColumnText to place Paragraphs at precise positions. Bruno's suggestion is the best one to use. Try it first and if it doesn't suit you try with ColumnText.
Best Regards, Paulo Soares ----- Original Message ----- From: "Bruno Lowagie" <[EMAIL PROTECTED]> To: "Kenny G. Dubuisson, Jr." <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, December 12, 2002 15:26 Subject: Re: [iText-questions] Question about ContentByte vs chunks > Kenny G. Dubuisson, Jr. wrote: > > >Bruno: thanks for your response. I'm still not quite clear on this > (and > >yes I've read every page of the tutorial and FAQ and some of the Java > docs). > >When you say "yes and no", does that mean that no, they can't be mixed > on a > >page unless I'm using PageEvents to place a chunk? > > > That was what I meant (but you aren't limited to the Chunk object). > > > I want to have fine > >control over where a paragraph begins but I don't want to have to place > the > >paragraph line by line using ContentByte stuff. > > > I think there is an example with Paragraphs in Paulo's examples bundle. > > Or you can look at: > http://www.lowagie.com/iText/examples/Chap1108.java > > As you can see, I create Outlines for every paragraph: > > class PageOutline extends PdfPageEventHelper { > > // the paragraph number > private int n = 0; > > // we override only the onParagraph method > public void onParagraph(PdfWriter writer, Document document, float > position) { > n++; > PdfContentByte cb = writer.getDirectContent(); > PdfDestination destination = new > PdfDestination(PdfDestination.FITH, position); > PdfOutline outline = new PdfOutline(cb.getRootOutline(), > destination, "paragraph " + n); > cb.addOutline(outline); > } > } > > Instead of using the position-parameter to create a PdfDestination that > points o > the start of every new Paragraph that is added. You could use this > position to draw > a line on the PdfContentByte... > > Bruno > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > iText-questions mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/itext-questions > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
