←Select platform

OcrZoneIndex Property

Summary

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

Syntax
C#
VB
C++
public int OcrZoneIndex { get; set; } 
Public Property OcrZoneIndex() As Integer 
   Get 
   Set 
public:  
   property Int32 OcrZoneIndex 
   { 
      Int32 get() 
      void set(Int32 value) 
   } 

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 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Svg Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.