PDF export via prince is missing Graph


#1

Hi

Inspired by this post.
I am trying to export my custom report to show VMs addition monthly trending chart with detail VM info.

  • Report in miq with graph chart

  • Exported PDF result with graph missed.

  • Warning message in /var/www/miq/vmdb/log/prince.log
[root@miq01 log]# egrep 'warning' prince.log
Tue Oct 24 13:02:04 2017: /var/www/miq/vmdb/tmp/cache/pdf/pdf_summary-87db30c992048d8f054d50140b37ca4c8c1c79f06ae579d03464ff4c5447ab83.css: warning: unsupported properties: text-shadow
Tue Oct 24 22:18:24 2017: -:style:1: warning: parse error in value of property 'size' at '-'
Wed Oct 25 14:52:58 2017: -:style:1: warning: parse error in value of property 'size' at '-'
Wed Oct 25 14:59:30 2017: -:style:1: warning: parse error in value of property 'size' at '-'
Wed Oct 25 17:10:27 2017: -:style:1: warning: parse error in value of property 'size' at '-'
Wed Oct 25 17:17:22 2017: -:style:1: warning: parse error in value of property 'size' at '-'
[root@miq01 log]#

  • Q: How I should modify the css file to get rid of the warning message ?

#2

Hi,

Any updates on Prince PDF output to show chart/graph?


#3

Hi @Roberto, I did get it to work. Let me review my notes and test machine and I will post the solution to resolve this.


#4

Thanks @tjyang!


#5

See ManageIQ Reporting (Euwe-3)

root@miq01 ~]# rpm -qa |grep -i prince
prince-11.3-1.x86_64
[root@miq01 ~]#


#6

I knew I wasn’t the only one who had this problem :wink: ! Glad the information is still useful.


#7

Im on gaprindashvili-1, unfortunately, the pdf export only produced tables, not chart/graph desired :disappointed_relieved:


#8

Indeed, looks like we’ve lost the ability to print charts in PDFs since the chart rendering moved from the backend to the javascript c3 charting lib.

This may be another argument to push for in-browser pdf printing…

Cc @dclarizio , @PanSpagetka