isLocal Property

Summary

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

Syntax
TypeScript
JavaScript
Object.defineProperty(DocumentPage.prototype, 'isLocal', 
   get: function(), 
   set: function(value) 
) 
isLocal: boolean; 

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 22.0.2023.2.1
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.