Skip to main content

PDF Export

Preparing to export to PDF

danger

For PDF export to work correctly, you need to make sure that you have all the necessary libraries for Chrome installed on your system. Headless Chrome is used by smartMonitorPDFExport plugin.

To check if the libraries are available:

  1. Go to the plugin directory:
cd /app/opensearch-dashboards/plugins/smartMonitorPDFExport/node_modules/puppeteer/.local-chromium/linux-1022525/chrome-linux
  1. Run the check installed libraries command:
ldd chrome
  1. If not found status is shown for some libraries, it is necessary to install them in the system before using export to PDF.
linux-vdso.so.1 =>  (0x00007ffc1b7e1000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fa3b2483000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fa3b2267000)
libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x00007fa3b2016000)
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007fa3b1d00000)
libnss3.so => /lib64/libnss3.so (0x00007fa3b19c6000)
libnssutil3.so => /lib64/libnssutil3.so (0x00007fa3b1796000)
libsmime3.so => /lib64/libsmime3.so (0x00007fa3b156e000)
libnspr4.so => /lib64/libnspr4.so (0x00007fa3b132f000)
libatk-1.0.so.0 => not found
libatk-bridge-2.0.so.0 => not found
libcups.so.2 => not found
libgio-2.0.so.0 => /lib64/libgio-2.0.so.0 (0x00007fa3b0f8f000)
libdrm.so.2 => /lib64/libdrm.so.2 (0x00007fa3b0d7e000)
libdbus-1.so.3 => /lib64/libdbus-1.so.3 (0x00007fa3b0b2e000)
libexpat.so.1 => /lib64/libexpat.so.1 (0x00007fa3b0904000)
libxcb.so.1 => not found
...

How to export PDF

To export the dashboard to PDF:

  1. Go to the page of the dashboard you want to export
  2. Click the Export button in the upper right corner of the interface next to the Edit button

PDF Export

  1. Wait for the export to be ready and for the PDF file to finish downloading
  2. The PDF version of the dashboard is ready

This way you can easily share the dashboard with your colleagues as a PDF file.