Package com.itextpdf.pdfoffice
Class OfficePageRange
java.lang.Object
com.itextpdf.pdfoffice.OfficePageRange
A class that keeps selected pages for office documents or presentations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddPageSequence
(int startPageNumber, int endPageNumber) Adds a page sequence to the range.addSinglePage
(int pageNumber) Adds a single page to the range.
-
Constructor Details
-
OfficePageRange
public OfficePageRange()Constructs an emptyOfficePageRange
instance.
-
-
Method Details
-
addSinglePage
Adds a single page to the range.A single page could be specified in the following format:
- from the beginning of the document
- argument 3 will result in the third page being added to the range
- Parameters:
-
pageNumber
- the page to be added to the range - Returns:
- this range, already modified
-
addPageSequence
Adds a page sequence to the range.Pages could be specified in the following format:
- from the beginning of the document
- arguments 1 and 3 will result in a sequence of the first, the second and the third pages being added to the range
- Parameters:
-
startPageNumber
- the starting page number of the sequence -
endPageNumber
- the finishing page number of the sequence - Returns:
- this range, already modified
-