some changes so that we have access to the actual pdfkit document