RE: [PHP] Drawing tables using PDFlib

From: Date: Wed, 30 Aug 2000 15:27:55 +0000
Subject: RE: [PHP] Drawing tables using PDFlib
Groups: php.general 
Request: Send a blank email to php-general+get-14412@lists.php.net to get a copy of this message
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 (#14412) next »