The PDF extents and positions are trustable but the printers and printer
drivers are not. Check that the options to fit to page in the print dialog
are disabled. Other than that you can only cross your fingers.

Best Regards,
Paulo Soares

----- Original Message -----
From: "Danny Burkes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 04, 2003 22:38
Subject: [iText-questions] Line extents


> Hello-
>
> I am using PdfContentByte to position items precisely on a LETTER-size
> page.
> If I perform the following operations:
>
> cb.setLineWidth((float)0.25);
> cb.setLineDash(0);
> cb.rectangle(72, 72, 72, 72);
> cb.stroke();
>
> I expect a rectangle to be rendered that is 1" square (72 points per
> inch).
> However, if I print the resulting PDF on a letter-sized sheet of paper,
> what
> I get is a rectangle that is about 0.9375" square (15/16"), slightly
> smaller
> than I requested.  The discrepancy seems constant at about
> -0.0625"/inch.
> For example, if I perform the following operations:
>
> cb.setLineWidth((float)0.25);
> cb.setLineDash(0);
> cb.rectangle(72, 72, 432, 432);
> cb.stroke();
>
> I expect a rectangle to be rendered that is 6" square.  However, when I
> print the resulting PDF on a letter-sized sheet of paper, what I get is
> a
> rectangle that is about 5.625" square (5 5/8"), again, smaller than
> expected- smaller in fact by 6 * 0.0625" = 0.375".
>
> Anyone know why this discrepancy exists, and how to correct it?  It's
> hardly
> worthwhile that PdfContentByte allows absolute positioning if the
> positions
> and extents aren't trustable.
>
> Best Regards,
>
> Danny Burkes
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Etnus, makers of TotalView, The
> debugger
> for complex code. Debugging C/C++ programs can leave you feeling lost
> and
> disoriented. TotalView can help you find your way. Available on major
> UNIX
> and Linux platforms. Try it free. www.etnus.com
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>



-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to