Hi;
 
Anyone have any ideas?
 
thanks - dave
 
----- Original Message -----
To: itext
Sent: Thursday, December 19, 2002 2:47 PM
Subject: Re: [iText-questions] PdfContentByte.setTextMatrix - units, 0,0, and text position

Hi;
 
I've tried this and this is what I've found:
  1. For an image, the absolute position I set for an image is not where it's printed. Instead it is printed a little lower and to the right of the position I give. I printed out getDpiX() & getDpiX() (both 72.0) and absoluteX() & absoluteY() and the values printed do not match the printed .pdf file.
  2. For an image, the size of the image is slightly smaller than it is supposed to be. I printed out plainWidth() & plainHeight() and the values printed out do not match the printed .pdf file.
  3. I printed out text and the x position is 90.0 (1.25") but on the paper it is at 1.375" The y position is 646.15 (8.97") but the text baseline is actually at 8.75"
The image size is actually the bigger problem as everything appears to be offset the same amount and the amount is not killer.
 
Any ideas?
 
thanks - dave
 
 
 
----- Original Message -----
From: "Paulo Soares" <[EMAIL PROTECTED]>
To: "David Thielen" <[EMAIL PROTECTED]>; "itext" <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 1:06 PM
Subject: Re: [iText-questions] PdfContentByte.setTextMatrix - units, 0,0, and text position

>
> ----- Original Message -----
> From: "David Thielen" <
[EMAIL PROTECTED]>
> To: "itext" <
[EMAIL PROTECTED]>
> Sent: Thursday, December 19, 2002 19:11
> Subject: [iText-questions] PdfContentByte.setTextMatrix - units, 0,0, and
> text position
>
>
> > Hi;
> >
> > When calling PdfContentByte.setTextMatrix, a couple of questions about
> > it.
> >
> > 1. x,y - are these units in points?
>
> Yes if there wasn't any other CTM scaling before.
>
> > 2. where is 0,0 - the lower left corner of the page?
>
> Or the template and again if there wasn't any other CTM translation before.
>
> > 3. Is this the position of the top, baseline, or bottom of the text
> > written?
>
> Baseline.
>
> >
> > thanks - dave
> >
>
>

Reply via email to