Class ShrinkToFit


  • public class ShrinkToFit
    extends ImageMapping

    The image mapping that places the image onto pages of the specified size

    Place images onto portrait or landscape pages. Large images are scaled down to fit onto getPageSize().
    • Constructor Detail

      • ShrinkToFit

        public ShrinkToFit()
    • Method Detail

      • getPageSize

        public Size getPageSize()

        The page size (Getter)

        All output pages are created as that size.

        Default value: "A4" (210mm 297mm)

      • setPageSize

        public void setPageSize​(Size value)

        The page size (Setter)

        All output pages are created as that size.

        Default value: "A4" (210mm 297mm)

        Throws:
        java.lang.IllegalArgumentException - The argument is smaller than "3pt 3pt" or larger than "14400pt 14400pt".
        java.lang.IllegalArgumentException - if value is null
      • getPageMargin

        public Margin getPageMargin()

        The page margin (Getter)

        Default value: 20mm (0.79in)
      • setPageMargin

        public void setPageMargin​(Margin value)

        The page margin (Setter)

        Default value: 20mm (0.79in)
        Throws:
        java.lang.IllegalArgumentException - The argument has negative margin values.
        java.lang.IllegalArgumentException - if value is null