I had the same issue, and ended up hard-coding the full css link in the head of the pdf layout. eg. <link rel="stylesheet" type="text/css" media="all" href="http://www.mysite.com/css/styles.css" /> Not the most optimal solution, but it got me up and running.
On Wednesday, January 23, 2013 8:19:04 AM UTC-5, Jeremy Burns wrote: > > So I got Ceeram's plugin working on the server (my server admin installed > WKHTMLTOPDF - I still haven't got it working on my Mac) and have views > rendering as PDFs - top draw, very happy. > > Only remaining question is how to render CSS? > > On Tuesday, 22 January 2013 17:15:53 UTC, Jeremy Burns wrote: >> >> I have an existing view that I want to output to PDF. I've looked at >> Ceeram's plugin and dompdf but they don't hit the mark for me. The existing >> view is built using elements which are not pulled in and there is no CSS. >> Am I missing something huge here or is this just really difficult? Do I >> have to rebuild the view and include the raw code from the elements (which >> isn't very DRY) and how do I include style sheets? >> >> Any help or guidance is much appreciated. >> > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. Visit this group at http://groups.google.com/group/cake-php?hl=en.
