PDF generator class