Raphael Watier wrote:

> Hi Everybody,
>
> I just have to generate a simple PDF document with texts and images.

OK,
if it's a simple PDF document, you can work with Chunk, Paragraph, Image,...
Create these objects and use Document.add.
http://itextdocs.lowagie.com/tutorial/objects/index.html

> Could you explain me how works absolutePosition (units, and sens) ?

If you use document.add, you normally don't have to worry about
absolute positions...

> Could you give me the position of top left and bottom right for a A4 
> page ?

PageSize.A4 is a Rectangle object, you can ask it for its height and width.
The origin of the coordinate system is at the bottom left of the page.
http://itextdocs.lowagie.com/tutorial/directcontent/coordinates/

> Are these Units the same for chunk.setSpacingBefore and setSpacingAfter ?

Yes.
1 inch is 72 units by default.
(Since PDF1.6 you can change this default, but for simple PDFs that
won't be necessary.)
br,
Bruno

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to