Class PageRange


  • public class PageRange
    extends Object
    Range of pages of a file where page numbering starts from 1
    • Constructor Detail

      • PageRange

        public PageRange​(Integer start,
                         Integer end)
        Creates a PageRange with start and end page num as its limit with both page num included. Page Numbering starts from 1
        Parameters:
        start - Start page num of this page range
        end - End page num of this page range
    • Method Detail

      • getStart

        public Integer getStart()
        Returns the start Page Num of Page Range
      • getEnd

        public Integer getEnd()
        Returns the end Page Num of Page Range from source PDF file.
      • validate

        public void validate()
      • toString

        public String toString()
        Returns the representation of file Page Ranges, as required by its corresponding API spec
        Overrides:
        toString in class Object