Class JsPdfSettings


  • @JsType(isNative=true,
            name="Object",
            namespace="<global>")
    public class JsPdfSettings
    extends Object
    The jsPDF' settings, It's being exported just as an Object with the following properties: - orientation - unit - format
    • Constructor Detail

      • JsPdfSettings

        public JsPdfSettings()
    • Method Detail

      • create

        @JsOverlay
        public static JsPdfSettings create​(String orientation,
                                           String unit,
                                           String format)
        Factory method for the jsPdf' settings.
        Parameters:
        orientation - The document's orientation. It can be portrait or landscape.
        unit - Values are pm, mm, cm or in.
        format - Any of the allowed PDF page formats. See PdfSettings.Format.
        Returns:
        A new jsPdf' settings instance.
      • getOrientation

        @JsProperty
        public String getOrientation()
      • setOrientation

        @JsProperty
        public void setOrientation​(String orientation)
      • getUnit

        @JsProperty
        public String getUnit()
      • setUnit

        @JsProperty
        public void setUnit​(String unit)
      • getFormat

        @JsProperty
        public String getFormat()
      • setFormat

        @JsProperty
        public void setFormat​(String format)