pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1642355 - /pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightContext.java
Date Fri, 28 Nov 2014 19:58:20 GMT
Author: tilman
Date: Fri Nov 28 19:58:19 2014
New Revision: 1642355

URL: http://svn.apache.org/r1642355
Log:
PDFBOX-2529: add getter for current page number

Modified:
    pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightContext.java

Modified: pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightContext.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightContext.java?rev=1642355&r1=1642354&r2=1642355&view=diff
==============================================================================
--- pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightContext.java
(original)
+++ pdfbox/trunk/preflight/src/main/java/org/apache/pdfbox/preflight/PreflightContext.java
Fri Nov 28 19:58:19 2014
@@ -290,4 +290,12 @@ public class PreflightContext implements
         this.currentPageNumber = currentPageNumber;
     }
 
+    /**
+     * Returns the current page number or null if none is known.
+     */
+    public Integer getCurrentPageNumber()
+    {
+        return currentPageNumber;
+    }
+
 }



Mime
View raw message