Thursday, August 23, 2012

Re: CakePdf - How To Start?

The first error about missing method setExtensions() is because you are not using latest cake version, if you would look up the line where the error points to you would read this:

https://github.com/ceeram/CakePdf/blob/master/Config/routes.php#L3

The dompdf error, i can not help with really, that is not caused by the CakePdf plugin code.

Tcpdf also produces i bunch of notices, so added a line about that here:

https://github.com/ceeram/CakePdf/blob/master/Pdf/Engine/TcpdfEngine.php#L23

You could try that with dompdf as well i guess.

Wkhtmltopdf is the recommended engine, as it beats all other engines together, in both performance and correct rendering html.

On Thursday, August 23, 2012 5:25:59 AM UTC+2, elogic wrote:
I since have setup the routes.php line of Router::parseExtensions( 'pdf');

The error I am getting now is:

Notice (8): Undefined variable: res [APP/Plugin/CakePdf/Vendor/dompdf/lib/class.pdf.php, line 1413]

I assume this is a config setting?


--
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
 
 

No comments: