TX Text Control .NET Server

Javascript: TXTextControl.PageContent Enumeration

Enumeration

Description

Defines the contents of a page's image returned from the Page.getImage method.

Members

MemberDescription
BackgroundThe image contains the background of the page.
HeadersAndFootersThe image contains the header and the footer of the page.
MainTextThe image contains the page's text contents.
AllThe image contains all parts without the screen elements.
ScreenElementsThe 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
    );
}