Description
When a PDPagesDestinatin has a page referenced, getPageNumber returns (as specified) -1.
In contrast other PD-Objects like PDOutlineItem are more "user-friendly" findDestinationPage resloves thze stored reference. In my attached patch I added code to getPageNumber to return the page number for referenced PDPages too.
PDFBox Developers: Submit it to the code base if this fits the idea of the PD-classes.