@JsType(isNative=true, name="Object", namespace="<global>") public class JsPdfSettings extends Object
orientation
- unit
- format
Constructor and Description |
---|
JsPdfSettings() |
Modifier and Type | Method and Description |
---|---|
static JsPdfSettings |
create(String orientation,
String unit,
String format)
Factory method for the jsPdf' settings.
|
String |
getFormat() |
String |
getOrientation() |
String |
getUnit() |
void |
setFormat(String format) |
void |
setOrientation(String orientation) |
void |
setUnit(String unit) |
@JsOverlay public static JsPdfSettings create(String orientation, String unit, String format)
orientation
- The document's orientation. It can be portrait
or unit
- Values are pm
, mm
, cm
or in
.format
- Any of the allowed PDF page formats. See PdfSettings.Format.@JsProperty public String getOrientation()
@JsProperty public void setOrientation(String orientation)
@JsProperty public String getUnit()
@JsProperty public void setUnit(String unit)
@JsProperty public String getFormat()
@JsProperty public void setFormat(String format)
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.