←Select platform

SaveXml(Stream,int,OcrWriteXmlOptions,OcrXmlOutputOptions) Method

Summary
Converts the accumulated recognition results stored in this page to XML data and stores it in an output stream with XML options.
Syntax
C#
Objective-C
C++/CLI
Java
Python
- (BOOL)saveXmlToStream:(LTLeadStream *)stream pageNumber:(NSUInteger)pageNumber xmlWriteOptions:(nullable LTOcrWriteXmlOptions *)xmlWriteOptions outputOptions:(LTOcrXmlOutputOptions)outputOptions error:(NSError **)error NS_SWIFT_NAME(saveXml(to:pageNumber:writeOptions:outputOptions:)); 
public void saveXml(OutputStream stream, 
                    int pageNumber, 
                    OcrWriteXmlOptions xmlOptions, 
                    int outputOptions) 

Parameters

stream
The output stream to save the XML data to.

pageNumber
1-based page number to use.

xmlOptions
Options to use when creating the XML data.

outputOptions
A combination of one or more OcrXmlOutputOptions enumeration members that specify the XML generation options.

Remarks

To save the recognition results as XML to a disk file, use IOcrPage.SaveXml(stringFileName, int pageNumber, OcrWriteXmlOptions xmlOptions, OcrXmlOutputOptions outputOptions).

For more information, refer to IOcrDocument.SaveXml.

Requirements

Target Platforms

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

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