in reply to how do i create PDF dynamically

For those of us on OS X, you don't even need that. Create the document as you normally would. Then, in the GUI, click "File -> Print"; on the Print splash screen on the lower left, choose the option "Save as PDF".

This isn't a perfect approach, but for many people, it eliminates the need for any other software. Neat, huh? (Come on, everyone, drink the kool-aid!)

--
tbone1, YAPS (Yet Another Perl Schlub)
And remember, if he succeeds, so what.
- Chick McGee