←Select platform

OcrCharacterIndex Property

Summary

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

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

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 23.0.2024.2.29
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.