Export to PDF

Export to PDF using the headless Google Chrome is available starting from the eazyBI version 4.4.0 for Jira Server.
The Google Chrome version 62 or later is supported.

Export to PDF is supported only when using Java 8 with Jira versions 6.3 or later.

The previous solution using PhantomJS is deprecated and not recommended anymore.

On this page:

Overview

If you would like to export table reports, Gantt charts, Gauge charts, or dashboard pages to PDF or if you would like to send regular emails with dashboards as PDF attachments, then you need to install the headless Google Chrome browser on your Jira server. Google Chrome on the server will be used by eazyBI to convert eazyBI web pages to PDF files.

Remove PhantomJS settings

If you have installed and configured PhantomJS for previous eazyBI versions then please remove PhantomJS settings from advanced settings:

# Delete these lines
[phantomjs]
location = "..."

Install Google Chrome on the server

Linux

Install the google-chrome-stable package on your server. Here are example how to do it on Ubuntu and RedHat.

Ubuntu

Install from the Google Chrome repository.

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
sudo apt-get update 
sudo apt-get install google-chrome-stable

RedHat

Enable Google YUM repository:

cat << EOF > /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome - \$basearch
baseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
EOF

Install the package:

yum install google-chrome-stable

There is possible bug on Centos/Red Hat (https://bugs.chromium.org/p/chromium/issues/detail?id=695212#c15) preventing Google Chrome run if there are no fonts installed. In that case please install fonts:

yum install mesa-libOSMesa-devel gnu-free-fonts-common gnu-free-sans-fonts

Windows

Download and install the Google Chrome for Windows. Please ensure that you have version 62 or later.

macOS

If you have your local Jira Server on macOS then also just download and install the Google Chrome for macOS. Please ensure that you have version 62 or later.

Restart eazyBI

After you have installed Google Chrome please disable and re-enable eazyBI add-on from JIRA Administration / Manage Add-ons.

During the startup, eazyBI will detect installed Google Chrome and will start to use it for PDF exports. Please visit any dashboard page and try to export it to PDF.

Troubleshooting

If you see an error message "Google Chrome is not found on the server." then you could try to specify the path to it manually via advanced settings:

[google_chrome]
location = '/usr/bin/google-chrome'

If you have any problems with PDF export after Google Chrome is installed then check:

  • System Administration / System Events page and see if you have any errors there.
  • Check eazybi-web.log file from the Troubleshooting page.

Please download eazyBI log files from the Troubleshooting page and send to eazyBI support if you need help with solving PDF export problems.

If you see error message Unable to connect [localhost:9250] then it probably means that google-chrome failed to start.

  • It could fail to start if you are trying to start the process using user root, try to use different user.
  • It could fail to start if you are using docker, then you can override default security profile with  --security-opt seccomp=unconfined please check Docker docs for more information on security profiles.