Make working with PDFs more flexible