raykolbe / DOMPDFModule

A Zend Framework module for Dompdf
MIT License
61 stars 62 forks source link

Getting an error while generatin pdf. #11

Closed nitin-soni closed 11 years ago

nitin-soni commented 11 years ago

Catchable fatal error: Argument 1 passed to DOMNode::appendChild() must be an instance of DOMNode,

This was the error come when something is missed in html. So, in the place of this error we can show an error message .

raykolbe commented 11 years ago

@nitin-soni I'm not I understand your suggestion. Do you want to catch this exception type and throw a DOMPDFModule specific exception, like PDFRenderErrorException, or something similar? This way you just have to do a try/catch for a single type?

nitin-soni commented 11 years ago

@raykolbe Sorry for the trouble i get your point. I am new with ZF2. So, i got confused. Thank You raykolbe.