outsourced pdf generation to pdflib