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:


Use the Java API

To keep soft hyphens using the Java API, set the setKeepSoftHyphen(boolean) method to true. For example:


The FilterTest sample program demonstrates this method. See FilterTest.