Class Auto
The image mapping that automatically determines a suitable conversion
Images with a meaningful resolution, e.g. scans or graphics,
are converted to PDF pages fitting the image. The
image size is preserved if it is smaller than getMaxPageSize().
Otherwise, it is scaled down.
For all images except scans, a margin getDefaultPageMargin() is used.
Images with no meaningful resolution, e.g. photos are scaled, to fit onto
getMaxPageSize().
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe default page margin (Getter)The maximum page size (Getter)voidsetDefaultPageMargin(Margin value) The default page margin (Setter)voidsetMaxPageSize(Size value) The maximum page size (Setter)Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
Constructor Details
-
Auto
public Auto()
-
-
Method Details
-
getMaxPageSize
The maximum page size (Getter)
Each image is scaled individually such that neither the width nor the height exceeds the maximum page size. For landscape images the maximum page size is assumed to be landscape, and equivalently for portrait images.
Default value: "A4" (210mm 297mm)
-
setMaxPageSize
The maximum page size (Setter)
Each image is scaled individually such that neither the width nor the height exceeds the maximum page size. For landscape images the maximum page size is assumed to be landscape, and equivalently for portrait images.
Default value: "A4" (210mm 297mm)
- Throws:
IllegalArgumentException- The argument is smaller than "3pt 3pt" or larger than "14400pt 14400pt".IllegalArgumentException- ifvalueisnull
-
getDefaultPageMargin
The default page margin (Getter)
Default value: 20mm (0.79in) -
setDefaultPageMargin
The default page margin (Setter)
Default value: 20mm (0.79in)- Throws:
IllegalArgumentException- The argument has negative margin values.IllegalArgumentException- ifvalueisnull
-