Package com.pdftools.image2pdf
Class ShrinkToPortrait
- java.lang.Object
-
- com.pdftools.internal.NativeBase
-
- com.pdftools.internal.NativeObject
-
- com.pdftools.image2pdf.ImageMapping
-
- com.pdftools.image2pdf.ShrinkToPortrait
-
public class ShrinkToPortrait extends ImageMapping
Deprecated.Deprecated in Version 1.1. Use 'PdfTools.Image2Pdf.ShrinkToFit' instead.The image mapping that places the image onto portrait pages of the specified size
Place images onto portrait pages. Large images are scaled down to fit ontogetPageSize()
.
-
-
Constructor Summary
Constructors Constructor Description ShrinkToPortrait()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Margin
getPageMargin()
Deprecated.The page margin (Getter)Size
getPageSize()
Deprecated.The page size (Getter)void
setPageMargin(Margin value)
Deprecated.The page margin (Setter)void
setPageSize(Size value)
Deprecated.The page size (Setter)-
Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
getPageSize
public Size getPageSize()
Deprecated.The page size (Getter)
All output pages are created as that size and in portrait mode.
Default value: "A4" (210mm 297mm)
-
setPageSize
public void setPageSize(Size value)
Deprecated.The page size (Setter)
All output pages are created as that size and in portrait mode.
Default value: "A4" (210mm 297mm)
- Throws:
java.lang.IllegalArgumentException
- The argument is smaller than "3pt 3pt" or larger than "14400pt 14400pt".java.lang.IllegalArgumentException
- ifvalue
isnull
-
getPageMargin
public Margin getPageMargin()
Deprecated.The page margin (Getter)
Default value: 20mm (0.79in)
-
setPageMargin
public void setPageMargin(Margin value)
Deprecated.The page margin (Setter)
Default value: 20mm (0.79in)- Throws:
java.lang.IllegalArgumentException
- The argument has negative margin values.java.lang.IllegalArgumentException
- ifvalue
isnull
-
-