make pdfkit work headless on server