- Install the latest version of the Pentaho BA-Server / BI-Server, PhantomJS and WeasyPrint on your PC.
- Upload the
pentaho-solutions/Report
folder to the Pentaho BA Server. It has to reside in following folder on the server:/public/Dashboards
. - Follow info outlined in this blogpost. To preprocess the HTML run
phantomjs phantomjs-preprocess-html.js > output.html
. To generate the PDF, runpython -m weasyprint.navigator
, open your favourite web browser with following URLlocalhost:5000
and enter the full file path ofoutput.html
into the input field.
diethardsteiner / css-for-print Goto Github PK
View Code? Open in Web Editor NEWDemo: How to create a PDF report using CSS, Pentaho BA-Server and WeasyPrint