Save(Stream,DocumentFormat,OcrProgressCallback) Method (original) (raw)
Summary
Converts the accumulated recognition results stored in the pages of this OCR document to the final output document and stores it in a .NET stream.
Syntax
C#
Objective-C
C++/CLI
Java
Python
- (BOOL)saveToStream:(LTLeadStream *)stream format:(LTDocumentFormat)format progress:(nullable LTOcrProgressHandler)progressHandler error:(NSError **)error NS_SWIFT_NAME(save(to:format:progress:));
Parameters
stream
The .NET stream to save the final output document to.
format
The document format to use. If this parameter is DocumentFormat.User, then the document saved using the native engine format set in IOcrDocumentManager.EngineFormat if the engine used supports native formats, otherwise an exception will be thrown. Note that saving the OCR results using the native engine formats may produce more accurate results in table and cell positions since the engine has access to extra data that is saved internally.
callback
Optional callback to show operation progress.