Class PageRanges


  • public class PageRanges
    extends Object
    Page ranges of a file, inclusive of start and end page index, where page index starts from 1.
    • Constructor Summary

      Constructors 
      Constructor Description
      PageRanges()
      Constructs a new PageRanges instance with no pages added.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAll()
      Adds a page range representing all pages.
      void addAllFrom​(int start)
      Adds a page range from start page index to the last page.
      void addRange​(int start, int end)
      Adds a page range.
      void addSinglePage​(int page)
      Adds a single page.
      List<com.adobe.pdfservices.operation.internal.params.PageRange> getRanges()
      Used internally by this SDK, not intended to be called by clients.
      boolean isEmpty()
      Used internally by this SDK, not intended to be called by clients.
      String toString()
      Used internally by this SDK, not intended to be called by clients.
      void validate()
      Used internally by this SDK, not intended to be called by clients.
    • Constructor Detail

      • PageRanges

        public PageRanges()
        Constructs a new PageRanges instance with no pages added.
    • Method Detail

      • addSinglePage

        public void addSinglePage​(int page)
        Adds a single page. Page index starts from 1.
        Parameters:
        page - single page index
      • addRange

        public void addRange​(int start,
                             int end)
        Adds a page range. Page indexes start from 1.
        Parameters:
        start - start page index, inclusive
        end - end page index, inclusive
      • addAllFrom

        public void addAllFrom​(int start)
        Adds a page range from start page index to the last page. Page index starts from 1.
        Parameters:
        start - start page index
      • addAll

        public void addAll()
        Adds a page range representing all pages.
      • toString

        public String toString()
        Used internally by this SDK, not intended to be called by clients.
        Overrides:
        toString in class Object
        Returns:
        string representation
      • validate

        public void validate()
        Used internally by this SDK, not intended to be called by clients.
      • isEmpty

        public boolean isEmpty()
        Used internally by this SDK, not intended to be called by clients.
      • getRanges

        public List<com.adobe.pdfservices.operation.internal.params.PageRange> getRanges()
        Used internally by this SDK, not intended to be called by clients.