-none- 2007-09-13 - By Hans-Werner Hilse
Back Hi,
On Thu, 13 Sep 2007 09:04:47 -0400 "Brian Daddino" <brian.daddino@(protected)> wrote:
> I have no idea how to do that. Could you show me a quick example?
Personally, I use that approach for vertical distribution of text blocks (for the TeX guys: something like \vfill). So I'll quote the relevant parts:
---snip PdfContentByte cb = writer.getDirectContent(); //... PdfTemplate titleTemplate = PdfTemplate.createTemplate(writer, frontWidth, frontHeight); ColumnText titleColumn = new ColumnText(titleTemplate); //... titleColumn.setSimpleColumn(new Phrase(new Chunk(title, font240w)), 0,0,titleTemplate.getWidth(),titleTemplate.getHeight(), 27, Element.ALIGN_LEFT); titleColumn.go(); //... cb.addTemplate(titleTemplate, frontX, frontY - (frontHeight + 2*frontSpacing + creatorHeight)); ---snip
-hwh
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ __ ____ ____ ____ ____ ____ ____ ____ ____ ____ iText-questions mailing list iText-questions@(protected) https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
|
|