Javascript: TXTextControl.PageContent Enumeration
Description
Defines the contents of a page's image returned from the Page.getImage method.
Members
| Member | Description |
|---|---|
| Background | The image contains the background of the page. |
| HeadersAndFooters | The image contains the header and the footer of the page. |
| MainText | The image contains the page's text contents. |
| All | The image contains all parts without the screen elements. |
| ScreenElements | The image contains all elements which are additionally displayed on a screen, such as the selection, the control characters and helper lines. |
Examples
The following example uses TXTextControl.PageContent.Background (the image contains the background of the page.) in a document-editing workflow.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
function applyPageContent(page) {
page.getImage(
TXTextControl.ImageFormat.Bmp,
100,
TXTextControl.PageContent.Background,
function(result) {
console.log("get image result:", result);
},
onTxError
);
}