Some customers still wanted a way to export the reports for offline viewing so we added the option to download a zip of CSV files. This wasn’t a pretty solution as it still required the customer to build a report from the data using some other application (Google Data Studio, Tableau, etc…).
Luckily, we stumbled upon PDFShift — a service to convert HTML pages to PDF.
With this new service, we simply had to restructure our reporting page to fit the width and height of A4 pages, reformat the coloring, and send an API request to PDFShift.
PDFShift promptly returns a beautiful PDF version of the client report that we then upload to our servers for easy distribution.