ImageGear Professional for Windows ActiveX
UpdateDocument Method

Description:

Synchronizes the document with external source by performing the following algorithm (only allowed if document was opened in r/w mode):

  1. Document pages with indices >= "file page count" are analyzed. Such "trailing segment" can have the following structure in order for saving to proceed: <valid page 1>, <valid page 2>, ..., <valid page N>,<empty page 1>, < empty page 2>, ..., < empty page M>. If valid pages are mixed with empty pages then it's unclear what to do and updating can't be done. Otherwise trailing empty pages are removed and trailing valid pages are shrunk so that they have indices "file page count", "file page count"+1, "file page count"+2 and so on.
  2. All valid pages are updated in the external file. "Trailing pages" are appended.
  3. If there are some indices within the range [0..<file page count>-1] for whose no IGPage Object exists in the document, corresponding pages are deleted from the external file, and page collection is shrunk so that it is now continuous.

Syntax:

      UpdateDocument(Document as IGDocument)

Parameters:

Name Description
Document A document to be update

Return Value:

N/A

Bits Per Pixel:

N/A

Sample:

Core

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback