public class ShrinkToPage extends ImageMapping
getPageSize()
.Constructor | Description |
---|---|
ShrinkToPage() |
Modifier and Type | Method | Description |
---|---|---|
Margin |
getPageMargin() |
The page margin (Getter)
|
Size |
getPageSize() |
The page size (Getter)
|
void |
setPageMargin(Margin value) |
The page margin (Setter)
|
void |
setPageSize(Size value) |
The page size (Setter)
|
equals, hashCode
public Size getPageSize()
All output pages are created with that size. The default page orientation is portrait, but if the image fits better, the page is rotated to landscape.
Default value: "A4" (210mm 297mm)
public void setPageSize(Size value)
All output pages are created with that size. The default page orientation is portrait, but if the image fits better, the page is rotated to landscape.
Default value: "A4" (210mm 297mm)
java.lang.IllegalArgumentException
- The argument is smaller than "3pt 3pt" or larger than "14400pt 14400pt".java.lang.IllegalArgumentException
- if value
is null
public Margin getPageMargin()
public void setPageMargin(Margin value)
java.lang.IllegalArgumentException
- The argument has negative margin values.java.lang.IllegalArgumentException
- if value
is null