Parameterized the PDF-exporter to allow for server-side exports