You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2020/11/08 13:21:45 UTC
svn commit: r1883201 -
/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageTree.java
Author: tilman
Date: Sun Nov 8 13:21:45 2020
New Revision: 1883201
URL: http://svn.apache.org/viewvc?rev=1883201&view=rev
Log:
PDFBOX-5009, PDFBOX-3953: improve javadoc
Modified:
pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageTree.java
Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageTree.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageTree.java?rev=1883201&r1=1883200&r2=1883201&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageTree.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/PDPageTree.java Sun Nov 8 13:21:45 2020
@@ -233,6 +233,10 @@ public class PDPageTree implements COSOb
* Returns the page at the given index.
*
* @param index zero-based 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 get(int index)
{
@@ -265,6 +269,8 @@ public class PDPageTree implements COSOb
* @param node page tree node to search
* @param encountered number of pages encountered so far
* @return COS dictionary of the Page object
+ * @throws IllegalStateException if the requested page number isn't found
+ * @throws IndexOutOfBoundsException if the requested page number is higher than the page count
*/
private COSDictionary get(int pageNum, COSDictionary node, int encountered)
{