Package com.teamdev.jxbrowser.print
Interface PageRange
public interface PageRange
A page range to be printed.
- Since:
- 7.13
-
Method Summary
-
Method Details
-
of
Creates a new page range instance.The specified range must not exceed the total page count received with the
PageCountUpdatedevent. An attempt to print a document with invalid page range will result in cancelling the printing operation.- Parameters:
from- the 1-based number of the first page within the rangeto- the 1-based number of the last page within the range- Throws:
IllegalArgumentException- iffromis greater thanto, or iffromis less than one
-
from
default int from()Returns the number of the first page within the range. -
to
default int to()Returns the number of the last page within the range.
-