Javascript: SectionFormat.setRestartPageNumbering Method
Description
Sets a value indicating whether page numbering is restarted at the section's beginning.
Syntax
<void> SectionFormat.setRestartPageNumbering(<boolean> restartPageNumbering, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])Parameters
| Parameter | Description |
|---|---|
| restartPageNumbering | Indicates whether page numbering is restarted at the section's beginning. |
| callback | Optional. Is called when the operation completed. |
| errorCallback | Optional. Is called when the operation failed with an error. |
Examples
The following example demonstrates SectionFormat.setRestartPageNumbering in a practical document-editing workflow. It sets a value indicating whether page numbering is restarted at the section's beginning.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function configureRestartPageNumbering(sectionFormat) {
sectionFormat.setRestartPageNumbering(
true,
function() {
console.log("set restart page numbering completed.");
},
onTxError
);
}