Initializes a new instance of the ImGearPDFWordFinder class.
Syntax
'Declaration
Public Function New( _
ByVal As ImGearPDFDocument, _
ByVal () As Short, _
ByVal () As String, _
ByVal () As String, _
ByVal As ImGearPDFWordFinderVersion, _
ByVal As ImGearPDFContextFlags _
)
'Usage
Dim document As ImGearPDFDocument
Dim encodingInfo() As Short
Dim encodingVector() As String
Dim ligatureTable() As String
Dim algorithmVersion As ImGearPDFWordFinderVersion
Dim options As ImGearPDFContextFlags
Dim instance As New ImGearPDFWordFinder(document, encodingInfo, encodingVector, ligatureTable, algorithmVersion, options)
Parameters
- document
- PDF document to find words in.
- encodingInfo
- Array of 256 flags, specifying the type of character at each position in the
encoding. Each flag is an OR of the Character Type Codes. If encodingInfo is Null, the platform's default
encoding info is used. Use encodingInfo and encodingVector together; for every encodingInfo use a corresponding
encodingVector to specify the character at that position in the encoding.
- encodingVector
- Array of 256 null-terminated strings that are the glyph names in encoding
order. See the discussion of character names in Section 5.3 of the PostScript Language Reference
Manual, Third Edition. If encodingVector is Null, the platform's default encoding vector is used. Use this
parameter with encodingInfo.
- ligatureTable
- A null-terminated array of null-terminated strings. Each string is the
glyph name of a ligature in the font. When a word contains a ligature, the glyph name of the
ligature is substituted for the ligature (for example, ff is substituted for the ff ligature). If
ligatureTbl is Null, a default ligature table is used, containing the following ligatures: fi, ff,
fl, ffi, ffl, ch, cl, ct, ll, ss, fs, st, oe, OE.
- algorithmVersion
- The version of the word-finding algorithm to use.
- options
- Word-finding options that determine the tables filled when using AcquireWordList. Must be an OR of one or more of ImGearPDFContextFlags.
Return Value
The new instance of
ImGearPDFWordFinder class object.
See Also