don't access renderPdf() statically