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.
To keep soft hyphens by using the formats.ini
file, set the following parameter:
[pdf_flags]
keepsofthyphen=TRUE
To keep soft hyphens using the Java API, set the setKeepSoftHyphen(boolean)
method to true
. For example:
objFilter.setKeepSoftHyphen(true);
The FilterTest
sample program demonstrates this method. See FilterTest.