tags:

views:

32

answers:

0

I am using pdfbox for a project, and for one specific task I need to pull out an image from a pdf file. The image I need is always on a specific page. PDF itself is usually pretty large 200+ pages. The problem is that every time I need to pull out this image I call getDocumentCatalog().getAllPages() ... and this takes significant amount of time. So I was wondering if there is any way to get a PDPage of a PDDocument without calling getDocumentCatalog() method. Or just any way to get a specific image from a specific page quickly.