Discussion:
[iText-questions] PdfContentByte.setTextMatrix - units, 0,0, and text position
David Thielen
2002-12-19 17:12:03 UTC
Permalink
Hi;

When calling PdfContentByte.setTextMatrix, a couple of questions about it.
1.. x,y - are these units in points?
2.. where is 0,0 - the lower left corner of the page?
3.. Is this the position of the top, baseline, or bottom of the text written?
thanks - dave
Paulo Soares
2002-12-19 18:15:20 UTC
Permalink
----- Original Message -----
From: "David Thielen" <***@windward.net>
To: "itext" <itext-***@lists.sourceforge.net>
Sent: Thursday, December 19, 2002 19:11
Subject: [iText-questions] PdfContentByte.setTextMatrix - units, 0,0, and
text position
Post by David Thielen
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.
Post by David Thielen
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.
Post by David Thielen
3. Is this the position of the top, baseline, or bottom of the text
written?
Baseline.
Post by David Thielen
thanks - dave
David Thielen
2002-12-19 19:48:06 UTC
Permalink
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" <***@consiste.pt>
To: "David Thielen" <***@windward.net>; "itext" <itext-***@lists.sourceforge.net>
Sent: Thursday, December 19, 2002 1:06 PM
Subject: Re: [iText-questions] PdfContentByte.setTextMatrix - units, 0,0, and text position
Post by Paulo Soares
----- Original Message -----
Sent: Thursday, December 19, 2002 19:11
Subject: [iText-questions] PdfContentByte.setTextMatrix - units, 0,0, and
text position
Post by David Thielen
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.
Post by David Thielen
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.
Post by David Thielen
3. Is this the position of the top, baseline, or bottom of the text
written?
Baseline.
Post by David Thielen
thanks - dave
Paulo Soares
2002-12-20 14:26:04 UTC
Permalink
Margins on paper depends on the printer and the selection of Acrobat
print-to-fit.

Best Regards,
Paulo Soares

----- Original Message -----
From: "David Thielen" <***@windward.net>
To: "itext" <itext-***@lists.sourceforge.net>
Sent: Thursday, December 19, 2002 21:47
Subject: Re: [iText-questions] PdfContentByte.setTextMatrix - units, 0,0,
and text position
Hi;
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 -----
Sent: Thursday, December 19, 2002 1:06 PM
Subject: Re: [iText-questions] PdfContentByte.setTextMatrix - units, 0,0, and text position
Post by Paulo Soares
----- Original Message -----
Sent: Thursday, December 19, 2002 19:11
Subject: [iText-questions] PdfContentByte.setTextMatrix - units, 0,0,
and
Post by Paulo Soares
text position
Post by David Thielen
Hi;
When calling PdfContentByte.setTextMatrix, a couple of questions
about
Post by Paulo Soares
Post by David Thielen
it.
1. x,y - are these units in points?
Yes if there wasn't any other CTM scaling before.
Post by David Thielen
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.
Post by Paulo Soares
Post by David Thielen
3. Is this the position of the top, baseline, or bottom of the text
written?
Baseline.
Post by David Thielen
thanks - dave
David Thielen
2002-12-20 15:41:04 UTC
Permalink
Any idea why the graphic image prints smaller than it should?

thanks - dave


----- Original Message -----
From: "Paulo Soares" <***@consiste.pt>
To: "David Thielen" <***@windward.net>; "itext"
<itext-***@lists.sourceforge.net>
Sent: Friday, December 20, 2002 9:11 AM
Subject: Re: [iText-questions] PdfContentByte.setTextMatrix - units, 0,0,
and text position
Post by Paulo Soares
Margins on paper depends on the printer and the selection of Acrobat
print-to-fit.
Best Regards,
Paulo Soares
----- Original Message -----
Sent: Thursday, December 19, 2002 21:47
Subject: Re: [iText-questions] PdfContentByte.setTextMatrix - units, 0,0, and text position
Hi;
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 -----
Sent: Thursday, December 19, 2002 1:06 PM
Subject: Re: [iText-questions] PdfContentByte.setTextMatrix - units,
0,0, and text position
Post by Paulo Soares
----- Original Message -----
Sent: Thursday, December 19, 2002 19:11
Subject: [iText-questions] PdfContentByte.setTextMatrix - units, 0,0,
and
Post by Paulo Soares
text position
Post by David Thielen
Hi;
When calling PdfContentByte.setTextMatrix, a couple of questions
about
Post by Paulo Soares
Post by David Thielen
it.
1. x,y - are these units in points?
Yes if there wasn't any other CTM scaling before.
Post by David Thielen
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.
Post by Paulo Soares
Post by David Thielen
3. Is this the position of the top, baseline, or bottom of the text
written?
Baseline.
Post by David Thielen
thanks - dave
-------------------------------------------------------
This SF.NET email is sponsored by: The Best Geek Holiday Gifts!
Time is running out! Thinkgeek.com has the coolest gifts for
your favorite geek. Let your fingers do the typing. Visit Now.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
_______________________________________________
iText-questions mailing list
https://lists.sourceforge.net/lists/listinfo/itext-questions
Paulo Soares
2002-12-20 22:37:04 UTC
Permalink
Uncheck the boxes "shrink/expand pages to paper size". Size will also vary
with the accuracy of the printer driver.

Best Regards,
Paulo Soares

----- Original Message -----
From: "David Thielen" <***@windward.net>
To: "itext" <itext-***@lists.sourceforge.net>
Sent: Friday, December 20, 2002 17:40
Subject: Re: [iText-questions] PdfContentByte.setTextMatrix - units, 0,0,
and text position
Post by David Thielen
Any idea why the graphic image prints smaller than it should?
thanks - dave
----- Original Message -----
Sent: Friday, December 20, 2002 9:11 AM
Subject: Re: [iText-questions] PdfContentByte.setTextMatrix - units, 0,0,
and text position
Post by Paulo Soares
Margins on paper depends on the printer and the selection of Acrobat
print-to-fit.
Best Regards,
Paulo Soares
----- Original Message -----
Sent: Thursday, December 19, 2002 21:47
Subject: Re: [iText-questions] PdfContentByte.setTextMatrix - units,
0,0,
Post by Paulo Soares
and text position
Hi;
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
Post by Paulo Soares
72.0) and absoluteX() & absoluteY() and the values printed do not
match
Post by Paulo Soares
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
Post by Paulo Soares
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
Post by Paulo Soares
be offset the same amount and the amount is not killer.
Any ideas?
thanks - dave
----- Original Message -----
Sent: Thursday, December 19, 2002 1:06 PM
Subject: Re: [iText-questions] PdfContentByte.setTextMatrix - units,
0,0, and text position
Post by Paulo Soares
----- Original Message -----
Sent: Thursday, December 19, 2002 19:11
Subject: [iText-questions] PdfContentByte.setTextMatrix - units,
0,0,
Post by Paulo Soares
and
Post by Paulo Soares
text position
Post by David Thielen
Hi;
When calling PdfContentByte.setTextMatrix, a couple of questions
about
Post by Paulo Soares
Post by David Thielen
it.
1. x,y - are these units in points?
Yes if there wasn't any other CTM scaling before.
Post by David Thielen
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
Post by Paulo Soares
before.
Post by Paulo Soares
Post by David Thielen
3. Is this the position of the top, baseline, or bottom of the
text
Post by Paulo Soares
Post by Paulo Soares
Post by David Thielen
written?
Baseline.
Post by David Thielen
thanks - dave
-------------------------------------------------------
This SF.NET email is sponsored by: The Best Geek Holiday Gifts!
Time is running out! Thinkgeek.com has the coolest gifts for
your favorite geek. Let your fingers do the typing. Visit Now.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
_______________________________________________
iText-questions mailing list
https://lists.sourceforge.net/lists/listinfo/itext-questions
-------------------------------------------------------
This SF.NET email is sponsored by: The Best Geek Holiday Gifts!
Time is running out! Thinkgeek.com has the coolest gifts for
your favorite geek. Let your fingers do the typing. Visit Now.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
_______________________________________________
iText-questions mailing list
https://lists.sourceforge.net/lists/listinfo/itext-questions
Loading...