adjsuted new PDFDocument syntax