Control Hyphenation

There are two types of hyphens in a PDF document:

By default, KeyView skips the source document’s soft hyphens in the Filter output to provide more searchable text content. However, if you want to maintain the document layout, you can keep soft hyphens in the Filter output. To keep soft hyphens, you must enable the soft hyphen flag in formats.ini or in the API.

Use the formats.ini File

To keep soft hyphens by using the formats.ini file, set the following parameter:

[pdf_flags]
keepsofthyphen=TRUE

Use the C API

To keep soft hyphens by using the C API, call the fpFilterConfig() function with the following arguments:

Argument

Parameter

nType

KVFLT_KEEPSOFTHYPHEN

nValue

TRUE

pData

NULL

For example:

(*fpFilterConfig)(pKVFilter, KVFLT_KEEPSOFTHYPHEN, TRUE, NULL);

_HP_HTML5_bannerTitle.htm