Export to PDF

Refer the following link : artima - Creating Printable Documents with Ruby