in reply to Problem converting HTML to PDF

You need to capitalize the method name "set" to "Set".