public static final class PdfDocument.PageInfo.Builder extends Object
PdfDocument.PageInfo
.Constructor and Description |
---|
Builder(int pageWidth,
int pageHeight,
int pageNumber)
Creates a new builder with the mandatory page info attributes.
|
Modifier and Type | Method and Description |
---|---|
PdfDocument.PageInfo |
create()
Creates a new
PdfDocument.PageInfo . |
PdfDocument.PageInfo.Builder |
setContentRect(Rect contentRect)
Sets the content rectangle in PostScript point (1/72th of an inch).
|
public Builder(int pageWidth, int pageHeight, int pageNumber)
pageWidth
- The page width in PostScript (1/72th of an inch).pageHeight
- The page height in PostScript (1/72th of an inch).pageNumber
- The page number.public PdfDocument.PageInfo.Builder setContentRect(Rect contentRect)
contentRect
- The content rectangle. Must fit in the page.public PdfDocument.PageInfo create()
PdfDocument.PageInfo
.