Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] Positioning of high level objects after adding
 direct content

Wolfgang Werner

2006-08-23


Hello,

we are creating pdf files with iText. Several times we found places,
where we would like to
mix high level objects (like chunk / paragraph) and items placed via
direct content.

Example: We do create a page with a header made from some sentences,
then placing a
scaled version of an already existent pdf file, then adding a footer.

However, the footer - formed by a high level paragraph object - will
be placed directly
under the header, covering the inserted pdf file.

The insertion point or the pdf is resolved by a PdfPageEventHelper
which tracks the
the current y-position:

public void onStartPage( PdfWriter writer, Document document ) {
  currentYPosition = document.top();
}

public void onParagraphEnd( PdfWriter writer, Document document,
float paragraphPosition ) {
  currentYPosition = paragraphPosition;
}

We now need a way to force the internal iText layout system to skip
some y-Space and continue
below our items.

Is there any way to to this, eg.

 document.setYPosition()

Any comments are highly appreciated!

Regards, Wolfgang

-------------------------------------------------------------------------
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
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.