Author: tilman Date: Tue Sep 16 11:11:04 2025 New Revision: 1928506 Log: PDFBOX-5660: improve javadoc
Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java ============================================================================== --- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java Tue Sep 16 11:11:00 2025 (r1928505) +++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDDocument.java Tue Sep 16 11:11:04 2025 (r1928506) @@ -1582,6 +1582,10 @@ public class PDDocument implements Close * * @param pageIndex the 0-based page index * @return the page at the given index. + * + * @throws IllegalStateException if the requested index isn't found or doesn't point to a valid + * page dictionary. + * @throws IndexOutOfBoundsException if the requested index is higher than the page count. */ public PDPage getPage(int pageIndex) // todo: REPLACE most calls to this method with BELOW method {