chevron_right Demos chevron_right PDF Export
Related demos
Book a live Demo

Live Demo — yFiles in Action

30–45 min | Online | No install required

For Developers, Product Mangers & Executives

  • Interactive graph visualization in real time
  • Integration example
  • Live Q&A and next step recommendations

30–45 minutes | 1:1 or team session | Online (Zoom / Teams)

No install required | We show live code

Book a free live demo

Live Demo — yFiles in Action

30–45 min | Online | No install required

For Developers, Product Mangers & Executives

30–45 minutes | 1:1 or team session | Online (Zoom / Teams)

No install required | We show live code

Book a free live demo
Кирилица 平仮名

Export Options

PDF Export Demo

This demo shows how to export the whole diagram or a part of it to a PDF.

Things to Try

Details

The demo shows two approaches, one that completely runs in the client's browser and a server-side export. The client-side export uses the open source svg2pdf and jsPDF libraries, to which we contributed major improvements and bug fixes.

The client-side PDF export also supports custom fonts which is illustrated by the node labels with custom fonts. To make use of custom fonts, they need to be preprocessed and registered at the jsPDF instance.

Server-side export

The server-side export is a minimal example of how to export the graph using an external service hosted on a server. It shows the export via a Node.js express server using headless Chrome/Puppeteer .

The server-side export button will be enabled when the Node.js is alive on loading time of the demo. To run the server, see the respective readme in ./node-server/.