pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1793133 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDPageLabels.java
Date Fri, 28 Apr 2017 19:20:50 GMT
Author: tilman
Date: Fri Apr 28 19:20:50 2017
New Revision: 1793133

URL: http://svn.apache.org/viewvc?rev=1793133&view=rev
Log:
PDFBOX-3770

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDPageLabels.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDPageLabels.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDPageLabels.java?rev=1793133&r1=1793132&r2=1793133&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDPageLabels.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/common/PDPageLabels.java Fri
Apr 28 19:20:50 2017
@@ -24,6 +24,7 @@ import java.util.Map;
 import java.util.NoSuchElementException;
 import java.util.TreeMap;
 import java.util.Map.Entry;
+import java.util.TreeSet;
 
 import org.apache.pdfbox.cos.COSArray;
 import org.apache.pdfbox.cos.COSBase;
@@ -240,6 +241,16 @@ public class PDPageLabels implements COS
     }
 
     /**
+     * Get an ordered set of page indices having a page label range.
+     *
+     * @return set of page indices.
+     */
+    public TreeSet<Integer> getPageIndices()
+    {
+        return new TreeSet(labels.keySet());
+    }
+
+    /**
      * Internal interface for the control flow support.
      * 
      * @author Igor Podolskiy



Mime
View raw message