Chinese Simplified (简体中文)

XMLExportParams Object (IXMLExportParams Interface)

This object provides functionality for tuning parameters of recognized text export in XML format. A pointer to this object is passed into the export methods as an input parameter, and thus affects the results of export. All properties of a newly created object of this type are set to reasonable defaults. For more information about the default value of this or that property, see the description of the corresponding property.

You can find the XML schema in the FineReader10-schema-v1.xsd file.This file is located in the Headers folder. For the description of XML tags see the XML Schema Description.

The XMLExportParams object is a persistent object. This means that the object's current state can be written to persistent storage on disk. Later, the object can be re-created by reading the object's state from persistent storage. The following methods provide persistence of the object: SaveToFile, and LoadFromFile.

Properties

Name Type Description
Application Engine, read-only Returns the Engine object.
WriteCharacterRecognitionVariants VARIANT_BOOL

Specifies if collections of variants of characters recognition are to be written in a file in XML format.

This property is not taken into account if the WriteCharAttributes property is XCA_None.

Note: The collections may contain more than one element only if the IRecognizerParams::SaveCharacterRecognitionVariants property was set to TRUE during recognition. See Using Voting API for details.

This property is FALSE by default.

WriteCharAttributes XMLCharAttributesEnum

Specifies which character attributes are to be saved in a file in XML format.

This property is XCA_None by default.

WriteCharFormatting VARIANT_BOOL

Specifies if character formatting is to be saved in a file in XML format.

This property is FALSE by default.

WriteNondeskewedCoordinates VARIANT_BOOL

Specifies if character coordinates saved in a file in XML format are on a non-deskewed image plane.

This property is TRUE by default.

WriteParagraphStyles VARIANT_BOOL

Specifies whether parameters of paragraph and font styles should be written in a file in XML format. This parameter may be useful, if you want to retrieve information on paragraph roles from XML.

This property is FALSE by default.

WriteWordRecognitionVariants VARIANT_BOOL

Specifies if collections of variants of words recognition are to be written in a file in XML format.

Note: The collections may contain more than one element only if the IRecognizerParams::SaveWordRecognitionVariants property was set to TRUE during recognition. See Using Voting API for details.

This property is FALSE by default.

Methods

Name Description
CopyFrom Initializes properties of the current object with values of similar properties of another object.
LoadFromFile Restores the object contents from a file on disk.
SaveToFile Saves the object contents into a file on disk.

Output parameter

This object is the output parameter of the CreateXMLExportParams method of the Engine object.

Input parameter

This object is passed as the input parameter to the following methods:

See also

Tuning Export Parameters

Working with Profiles

Working with Properties

03.07.2024 8:50:10

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.