refactoring; move opening of PDFs to PdfDocument