pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johanneke Lamberink <johanneke.lamber...@onior.com>
Subject Getting the pagenumber of a PDPage
Date Wed, 22 Apr 2015 08:15:33 GMT
Hi,

I'm trying to get the pagenumber of a given PDPage.
What I have is:
document.getPages().indexOf(page)

No matter the page I input, I always get the same result, which is equal to the total number
of pages
document.getPages().getCount() == document.getPages().indexOf(page) // for every page I input.

Is this a bug, or am I using the framework incorrectly?

Also, I think it would be great if PDPage had a variable "page" so I wouldn't have to iterate
through all the pages to get the index.

Kind regards,


Johanneke Lamberink

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message