Adobe make a collection of commercial products to the do business, but they invariably come with a hefty price tag and generally are restricted to Windows and Macintosh platforms. Luckily, once again, PHP comes to the rescue!
Before you begin, note that measurements are in points, and there are 72 points to an inch. However, this can be altered by changing the output resolution of the produced PDF.
If this was helpful, please take a moment to tell others about Hacking with PHP by tweeting about it!