←Select platform

OcrZoneIndex Property

Summary

Index of the OCR zone containing the text if this SVG document was obtained through OCR.

Syntax
C#
C++/CLI
Python
public int OcrZoneIndex { get; set; } 
public:  
   property Int32 OcrZoneIndex 
   { 
      Int32 get() 
      void set(Int32 value) 
   } 
OcrZoneIndex # get and set (SvgTextData) 

Property Value

The 0-based index of the OCR zone containing the text if this SVG document was obtained through OCR. Default value is 0.

Remarks

OcrZoneIndex and OcrCharacterIndex are valid only if CharacterFlags contains SvgTextCharacterFlags.FromOcr. Otherwise, the value is 0 and should not be used.

LEADTOOLS offers many ways of generating SVG documents from raster images. For instance, IOcrPage.SaveSvg. When SvgTextData is obtained from such SVG, CharacterFlags will contain SvgTextCharacterFlags.FromOcr and the values of OcrZoneIndex and OcrCharacterIndex are valid and contain the following:

Member Value
OcrZoneIndex The 0-based index of the zone that contains this character in IOcrPageCollection.
OcrCharacterIndex The 0-based index of the character in the owner IOcrZoneCharacters.
Requirements

Target Platforms

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

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