Mar 3, 2017
0
Level 4
Create image/pdf from view
I'm tearing my hair out with this one!
So I've created a view and want to export it to a PDF or preferably an SVG. The view is made up of HTML, JS and CSS including Bootstrap and custom styles.
I've tried snappy, dompdf and a few others and none of the PDFs render properly. Additionally I've tried Spatie's PhantomJS screenshot package but as I'm passing an authenticated user's data, it just screenshots the 'you need to be logged in page'.
Does anyone have any tips on how I can export a view in hi-res to PDF/SVG?
Thanks!
Please or to participate in this conversation.