Javascript: PageBorder.setOmitFirstPage Method
Description
Sets whether the page border is not drawn on the first page of the section.
Syntax
<void> PageBorder.setOmitFirstPage(<boolean> omitFirstPage, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| omitFirstPage | Specifies whether the page border is not drawn on the first page of the section. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates PageBorder.setOmitFirstPage in a practical document-editing workflow. It sets 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 configureOmitFirstPage(pageBorder) {
pageBorder.setOmitFirstPage(
true,
function() {
console.log("set omit first page completed.");
},
onTxError
);
}