If you cannot get FPDF to work the way you like, consider exploring the Zend_PDF component of Zend Framework. It is open source and already on your system if you are using Zend Server.


I've only played with FPDF but have actually used Zend_PDF.



mike.p@xxxxxxxx Cell: (408)679-1011 Office: (815)722-3454

Zend Server for IBM i avilable at http://www.zend.com/en/products/server/zend-server-5-new-ibmi

-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Larry Kleinman
Sent: Thursday, August 19, 2010 1: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.