Hi Larry,

I have no experience with the FPDF library, but I know a bit on PDF and other libraries.

Have you checked the "page size" attribute of the PDF document that you are creating? Open up your PDF document on the Adobe Acrobat Reader, press <ctrl>+<D> and you'll find the "Page size" attributes.

With that on mind, if your definition is A4 for instance, just make sure that you are selecting A4 from the printer options when you are printing it. In other words, the "page size" attribute must match the "paper type" selected for the printer. You might also considering look at the "paper type" that is configured physically on your printer.

Jorge Merino

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Larry Kleinman
Sent: Thursday, August 19, 2010 12:16 PM
To: web400@xxxxxxxxxxxx
Subject: [WEB400] FPDF

I'm using FPDF (in a Zend Server PHP application) and don't understand why
the dimensions that I put in for drawing lines and rectangles don't seem
to work. I used the default for the FPDF constructor, which means that
my dimensions are in millimeters, but when I say that - for example - a
rectangle is 100 mm wide, the rectangle that prints is not 100mm. When I
change the paper size from the default (A4) to "Letter", the width
changes, but still to a width other than 100mm. Am I missing something?
(I've tried this on a number of printers, so I do not think that it is
related to margins, unprintable areas on printers, etc.)

Larry Kleinman
Kleinman Associates, Inc.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.