Class JsPdfSettings
- java.lang.Object
-
- org.uberfire.ext.editor.commons.client.file.exports.jso.JsPdfSettings
-
@JsType(isNative=true, name="Object", namespace="<global>") public class JsPdfSettings extends ObjectThe jsPDF' settings, It's being exported just as an Object with the following properties: -orientation-unit-format
-
-
Constructor Summary
Constructors Constructor Description JsPdfSettings()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsPdfSettingscreate(String orientation, String unit, String format)Factory method for the jsPdf' settings.StringgetFormat()StringgetOrientation()StringgetUnit()voidsetFormat(String format)voidsetOrientation(String orientation)voidsetUnit(String unit)
-
-
-
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 beportraitorlandscape .unit- Values arepm,mm,cmorin.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)
-
-