借助Phantomjs生成pentaho dashboard的pdf输出格式

环境: CentOS 5.4, Pentaho 5.3

下载 phantomjs编译版本

wget http://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2

tar xvf phantomjs-1.9.2-linux-x86_64.tar.bz2

cd phantomjs

wget https://raw.githubusercontent.com/ariya/phantomjs/master/examples/rasterize.js

生成pdf文件:

bin/phantomjs rasterize.js http://www.baidu.com baidu.pdf

bin/phantomjs rasterize.js ‘http://xxx.xxx.xxx.xxx:8080/pentaho/api/repos/%3Apublic%3ASteel%20Wheels%3ADashboards%3AHome%20Dashboard.xcdf/generatedContent?ts=1439186533366&userid=admin&password=password’ Steel_Whells.pdf

作者: hqiang1984

量化自我,极简主义