pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: Get list of PDPageLabelRange?
Date Fri, 28 Apr 2017 19:32:25 GMT
Am 28.04.2017 um 13:42 schrieb Olivier Cailloux:
> Le 27/04/2017 à 18:15, Tilman Hausherr a écrit :
>> So, would this help you?
>>
>>
>>     public Set<Integer>getPageIndices()
>>     {
>>         return labels.keySet();
>>     }
>>
>
> Perfect! (Possibly also with a (javadoc) guarantee about the ascending 
> iteration order over the set contents, if that’s easy to provide.)
> Olivier 


Done.
https://issues.apache.org/jira/browse/PDFBOX-3770

You get get a snapshot here:
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/2.0.6-SNAPSHOT/

     /**
      * Get an ordered set of page indices having a page label range.
      *
      * @return set of page indices.
      */
     public SortedSet<Integer> getPageIndices()


Please give feedback whether it works for you.

Tilman



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message