Variable ScanbotLegacyPageConst

ScanbotLegacyPage: {
    refreshImageUris(pages): Promise<Page[]>;
    removeAllPages(): Promise<void>;
    removePage(page): Promise<void>;
    setDocumentImage(params): Promise<Page>;
}

Entry point for all legacy page features.

Type declaration

  • refreshImageUris:function
    • Recreates the given pages to refresh the image uris.

      Parameters

      • pages: Page[]

        Pages to be recreated.

      Returns Promise<Page[]>

      • Recreated pages with refreshed image uris.

      Deprecated

  • removeAllPages:function
    • Remove all legacy pages from the storage.

      Returns Promise<void>

      Deprecated

  • removePage:function
    • Remove legacy page from the storage.

      Parameters

      • page: Page

        Page to be removed.

      Returns Promise<void>

      Deprecated

  • setDocumentImage:function
    • Sets document image for a given page.

      Parameters

      • params: {
            imageFileUri: string;
            page: Page;
        }
        • imageFileUri: string

          Image to be set.

        • page: Page

          Page to be updated.

      Returns Promise<Page>

      • Updated page.

      Deprecated