Javascript: PageBorder.getOmitFirstPage Method
Description
Gets whether the page border is not drawn on the first page of the section.
Syntax
<void> PageBorder.getOmitFirstPage(<RequestBooleanCallback> callback, [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| callback | Receives whether the page border is not drawn on the first page of the section. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates PageBorder.getOmitFirstPage in a practical document-editing workflow. It gets whether the page border is not drawn on the first page of the section.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function inspectOmitFirstPage(pageBorder) {
pageBorder.getOmitFirstPage(
function(result) {
if (result) {
console.log("get omit first page is available.");
} else {
console.warn("get omit first page is not available in the current document state.");
}
},
onTxError
);
}