isLocal Property

Summary

Indicate that this page has been created by the user in this document.

Syntax

JavaScript Syntax
Object.defineProperty(DocumentPage.prototype, 'isLocal', 
	get: function() 
) 
TypeScript Syntax
isLocal: boolean; // read-only 

Property Value

true if this page has been created by the user in this document; otherwise, false.

Remarks

The value of IsLocal will be false if the page corresponds to an actual page in the source document. In other words, the value of OriginalPageNumber is not -1 and the page raster or SVG data representation.

The value of IsLocal is set initially to true when the user creates a new page using DocumentPages.CreatePage and adding this page to a document. This value means the page does not have raster or SVG data and the owner document has not been saved into the cache yet. When the owner document is saved into the cache or when the user sets image or SVG data into the page, the value of IsLocal will be set to true.

This value is not saved into the cache (since, saving to the cache automatically renders the page to be "not local" and is currently used by the Document Viewer internally to determine whether to skip rendering the page into the view or thumbnail portion.

Requirements

Target Platforms

Help Version 19.0.2017.10.18
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Documents Assembly