←Select platform

OcrCharacterIndex Property

Summary

Index of the first OCR character in the text if this SVG document was obtained through OCR.

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

Property Value

The 0-based index of the first OCR character in 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.