Thanks for the tips Mark. I will play around with them.
I am not so experienced yet with iText, but like explained in the book,
there are several ways to realize your goal which makes a bit difficult to
make the correct choices.
I get the idea that most experienced iText developers hardly use high level
objects, is that so?


> -----Original Message-----
> From: Mark Storer [mailto:[email protected]]
> Sent: maandag 28 maart 2011 19:49
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] mix high level and absolute positioning
> 
> One thing you can try is to add a placeholder behind the absolutely
> positioned elements.
> 
> An empty paragraph with customized spacing settings.
>   OR
> Tweak the leading spacing on the next item to be drawn.
> 
> One final thing you might do Within The Bounds of Highlevel Layout:
> 
> Draw your Custom Stuff into a PdfTemplate, and wrap that with an Image.
> You'd have to know how big to make the PdfTemplate in advance.
> ColumnText.go(false) "simulates" layout, letting you know how tall
> it'll
> be without actually drawing anything.  You can then build a PdfTemplate
> with the correct dimentions, draw to it, wrap it, and add it as part of
> your Normal Layout.
> 
> In theory.  I haven't done this myself... I just stick to absolute
> positioning.
> 
> --Mark Storer
>   Senior Software Engineer
>   Cardiff.com
> 
> import legalese.Disclaimer;
> Disclaimer<Cardiff> DisCard = null;
> 
> 
> 
> > -----Original Message-----
> > From: Ed Bras [mailto:[email protected]]
> > Sent: Monday, March 28, 2011 10:25 AM
> > To: [email protected]
> > Subject: [iText-questions] mix high level and absolute positioning
> >
> > What's the correct way to mix high level objects and absolute
> > positioning?
> >
> > I have problems mixing them.
> > Suppose that I add Paragraphs to the Document and need to add
> > an absolute element through ColumnText because I have
> > additional requirements that I can't realize with high level objects:
> >
> > document.add(new Paragraph("Hallo 1"));
> > document.add(new Paragraph("Hallo 2"));
> > document.add(new Paragraph("Hallo 3"));
> > ColumnText  boxText = new ColumnText();
> > // set additional ColumnText properties such that it shows a
> > box of wrapped text.
> > document.add(new Paragraph("Hallo 4"));
> > document.add(new Paragraph("Hallo 5"));
> >
> > My problem: how do I make sure that "Hallo 4" appears below
> > the boxText instance?
> > How should I solve these kind of problems?
> > (I get the idea that when I start adding absolute positioned
> > elements, I have to continue with absolute positioned
> > elements to overcome the above
> > problems)
> >
> > Thanks,
> > - Ed
> >
> >
> > --------------------------------------------------------------
> > ----------------
> > Create and publish websites with WebMatrix Use the most
> > popular FREE web apps or write code yourself; WebMatrix
> > provides all the features you need to develop and publish
> > your website. http://p.sf.net/sfu/ms-webmatrix-sf
> > _______________________________________________
> > iText-questions mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> >
> > iText(R) is a registered trademark of 1T3XT BVBA.
> > 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
> >
> >
> 
> -----------------------------------------------------------------------
> -------
> Create and publish websites with WebMatrix
> Use the most popular FREE web apps or write code yourself;
> WebMatrix provides all the features you need to develop and publish
> your website. http://p.sf.net/sfu/ms-webmatrix-sf
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> iText(R) is a registered trademark of 1T3XT BVBA.
> 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


------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and publish 
your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
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

Reply via email to