←Select platform

UpdateFromDocumentDescriptor Method

Summary

Update this document from a descriptor.

Syntax
C#
C++/CLI
Java
Python
public void UpdateFromDocumentDescriptor( 
   DocumentDescriptor descriptor 
) 
public:  
   void UpdateFromDocumentDescriptor( 
      DocumentDescriptor^ descriptor 
   ) 
public void updateFromDocumentDescriptor(DocumentDescriptor descriptor) 
def UpdateFromDocumentDescriptor(self,descriptor): 

Parameters

descriptor

Simple JSON object that contains properties of the document.

Remarks

DocumentDescriptor is a simple JSON serializable object that can be used to re-create a LEADDocument.

Use CreateDocumentDescriptor to generate the object from an existing document.

Use UpdateFromDocumentDescriptor to update an existing LEADDocument from a descritpor.

Use CreateDocumentOptions.Descriptor along with Create(CreateDocumentOptions)
from a descritpor.

These methods are used by the LEADTOOLS Document Web Service to allow creating or manipulating existing documents from JavaScript. When the JavaScript has finished with the LEADDocument object, it will call CreateDocumentDescriptor to obtain a simple JSON object that describes the document and send it to the server. The server will then call UpdateFromDocumentDescriptor or DocumentFactory.Create to update an existing or creata a new LEADDocument object.

Refer to CreateDocumentOptions.Descriptor for more information.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

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