RE: [PHP] Drawing tables using PDFlib

From: Date: Thu, 31 Aug 2000 02:10:16 +0000
Subject: RE: [PHP] Drawing tables using PDFlib
Groups: php.general 
Request: Send a blank email to php-general+get-14492@lists.php.net to get a copy of this message
---------------------------------------------------------------------------- ----------------- Disclaimer: The information contained in this email is intended only for the use of the person(s) to whom it is addressed and may be confidential or contain legally privileged information. If you are not the intended recipient you are hereby notified that any perusal, use, distribution, copying or disclosure is strictly prohibited. If you have received this email in error please immediately advise us by return email at postmaster@normandy.com.au and delete the email document without making a copy. ---------------------------------------------------------------------------- ----------------- If you only want simple html like tables check out www.easysw.com/htmldoc it will generate PDF's from HTML. -----Original Message----- From: Tom Walsh [mailto:TWalsh@achieversusa.com] Sent: Wednesday, August 30, 2000 11:28 PM To: 'Cody Caughlan'; php-general@lists.php.net Subject: RE: [PHP] Drawing tables using PDFlib You can draw rectangles in PDFlib just as easily as you can draw lines in PDFlib. Something as simple as: pdf_setlinewidth($pdf, 2); pdf_rect($pdf, 3, $y, 10, 10); pdf_stroke($pdf); So you are now drawing 4 lines at time rather than 1... Or if you like because of how PDFlib works you can take a graphic of a table and then write that graphic into the PDF and then just place the location of the information ontop of the various "cells" on the table graphic... Just a quick and dirty solution... PDFs can be a little tricky... But the other alternatives make it look pretty nice. Tom Walsh www.designgeek.com BTW: I hear Cisco is in a hiring phase... Need any PHP programmers? :-) > Hello, > > Does anyone know know how to draw a table using PDFlib and > PHP4. I would > imagine there is a simpler method than drawing a bunch of > horizontal and > vertical lines individually, then you would have to deal with > text size > and spacing, it sounds like a nightmare!! > > Thanks > /Cody Caughlan'

« previous php.general (#14492) next »