Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Zend:
PDF Generation Using Only PHP (Part 2)
Jan 06, 2004 @ 13:05:04

In part two of their tutorial, Zend has posted PDF Generation Using Only PHP - Part 2 this morning.

We have seen in Part 1 how PDF files are, after all, just plain text files, with specific markup syntax that describes what should happen to objects within the document, such as text and images. We shall now further examine this syntax, to allow us to create a more complete PDF document (i.e more than simple text).

In this part, they cover how to add colors to your PDF documents, add lines/rectangles/circles, and how to import JPEG images and use them inside your file. With the code that they give you, adding these features is as simple as cut & paste (and modification to your needs). Even importing and placing the JPEG image, the most complex of the three, is simple with the _parseJPG and _putImages functions included in the examples. And, of course, if you want it all in one shot, they have the entire class available for download.

tagged:

Link:


Trending Topics: