←Select platform

SaveXml(string,int,OcrWriteXmlOptions,OcrXmlOutputOptions) Method

Summary

Converts the accumulated recognition results stored in this page to XML data and stores it in a disk file with XML options.

Syntax

C#
VB
Java
Objective-C
C++
Overloads Sub SaveXml( _ 
   ByVal fileName As String, _ 
   ByVal pageNumber As Integer, _ 
   ByVal xmlOptions As Leadtools.Ocr.OcrWriteXmlOptions, _ 
   ByVal outputOptions As Leadtools.Ocr.OcrXmlOutputOptions _ 
)  
- (void)saveXmlToFile:(NSString *)fileName 
           pageNumber:(NSUInteger)pageNumber 
      xmlWriteOptions:(nullable LTOcrWriteXmlOptions *)xmlWriteOptions 
        outputOptions:(LTOcrXmlOutputOptions)outputOptions 
                error:(NSError **)error 
             
public void saveXml(String fileName, 
                    int pageNumber, 
                    OcrWriteXmlOptions xmlOptions,int outputOptions) 
             

Parameters

fileName
The output file name 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 .NET stream, use IOcrPage.SaveXml(Stream stream, int pageNumber, OcrWriteXmlOptions xmlOptions, OcrXmlOutputOptions outputOptions).

For more information, refer to IOcrDocument.SaveXml.

Requirements

Target Platforms

Help Version 20.0.2018.1.18
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Ocr Assembly