PDF2HTML for Cforms

Got PDF2HTML added to Cforms for printing form as pdf. After migration I got the following error

<strong>TCPDF ERROR: </strong>Unable to create output file: path/to/wp-content/plugins/cforms/html2pdf/pdf/form.pdf

Changing the permission of folder pdf to 777 does not help. Form.pdf just needed to be 777 and was automatically given 644 by server’s umask. All good now.