Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] Problems with ContentByte

Juanjo

2005-06-30

Replies:

Hi,

  I'm a new user of iText. I want to build a PDF with text in a absolute
possition to the margin of the page (in this case, the margin is 0). I'm using
the follow:
 
             cb.moveText(85f, (PageSize.A4.height() - 99f));
cb.showText("Fagor");
             cb.moveText(85f, (PageSize.A4.height() -
133f)); cb.showText("XML394");
             cb.moveText(28f, (PageSize.A4.height() -
198f)); cb.showText("-");
             cb.moveText(14f, (PageSize.A4.height() -
382f)); cb.showText("25???");
             cb.moveText(141f, (PageSize.A4.height() -
382f)); cb.showText("345???");
(cb is a PDFContentByte object)
             
 But when I run the program, in the PDF generated, I only can see the
first line (Fagor).... Anyboy can help me?
 
 ThankX.




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.