The new bottom left position is rect.getLeft(), rect.getBottom(). These are 
probably negative.

Paulo

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Dean Krueger
> Sent: Thursday, September 11, 2008 6:14 PM
> To: [email protected]
> Subject: [iText-questions] PdfContentByte
>
> Hi,
>  When using a PdfContentByte how can I tell it which box to use for a
> starting position? What box does it use by default? I have a pdf that
> when using PdfContentByte for putting text on the pdf, starts way
> higher than the 10 pts I tell it to start at. The art, bleed, media,
> trim and bbox on those files are set to the size of the doc. Here is
> some of the code.
>
> The document I am using is one, that I increased the size of using a
> PdfStamper in my past question. This how I am setting the box's.
>
> p.Put(PdfName.MEDIABOX, new PdfRectangle(rect));
> p.Put(PdfName.CROPBOX, new PdfRectangle(rect));
> p.Put(PdfName.TRIMBOX, new PdfRectangle(rect));
> p.Put(PdfName.ARTBOX, new PdfRectangle(rect));
> p.Put(PdfName.BLEEDBOX, new PdfRectangle(rect));
> p.Put(PdfName.BBOX, new PdfRectangle(rect));
> --------------------------------------------------------------
> -------------------------
>
> cContentByteStream.BeginText();
> cContentByteStream.SetTextMatrix(172, 10);
> cContentByteStream.SetCMYKColorFill(255, 255, 255, 255);
> cContentByteStream.ShowText(TimeStamp());
> cContentByteStream.EndText();
>
> Thanks
> Dean Krueger


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to