public class WordFinderConfig
extends java.lang.Object
| Constructor and Description |
|---|
WordFinderConfig()
A word finder configuration that customizes the way the extraction is performed. In the default configuration, all options are false.
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete() |
boolean |
getDisableCharReordering()
When true, it disables reconstructing the character orders, and the word finding algorithm is applied to the characters in the drawing order.
|
boolean |
getDisableTaggedPDF()
When true, it disables tagged PDF support and treats the document as non-tagged PDF.
|
boolean |
getIgnoreCharGaps()
When true, it disables converting large character gaps to space characters, so that the word finder reports a character space only when a space character appears in the original PDF content.
|
boolean |
getIgnoreLineGaps()
When true, it disables treating vertical movements as line breaks, so that the word finder determines a line break only when a line break character or special tag information appears in the original PDF content.
|
boolean |
getNoAnnots()
When true, it disables extracting text from text annotations.
|
boolean |
getNoEncodingGuess()
When true, it disables guessing encoding of fonts that have unknown or custom encoding when there is no ToUnicode table.
|
boolean |
getNoExtCharOffset()
When true, it disables generating extended character offset information to improve text extraction performance.
|
boolean |
getNoHyphenDetection()
When true, it disables finding and removing soft hyphens in non-tagged PDF, so that the word finder trusts hard hyphens as non-soft hyphens.
|
boolean |
getNoLigatureExp()
When true, it disables the expansion of ligatures using the default ligatures.
|
boolean |
getNoSkewedQuads()
When true, it disables the creation of a quad per character for skewed words, words with a horizontally-aligned, but non-rectangular, bounding region.
|
boolean |
getNoStyleInfo()
When true, it disables generating character style information to improve text extraction performance and memory efficiency.
|
boolean |
getNoTextRenderMode3()
When true, it disables extracting text with Text Rendering mode Tr = 3 ("Neither fill nor stroke text (invisible).").
|
boolean |
getNoXYSort()
When true, it disables generating an XY-ordered word list.
|
boolean |
getPreciseQuad()
When true, the bounding box or bounding quad will be set based on actual glyph bounding box.
|
boolean |
getPreserveRedundantChars()
When true, it disables detecting and removing redundant characters.
|
boolean |
getPreserveSpaces()
When true, the word finder preserves space characters during word breaking.
|
boolean |
getTrustNBSpace()
When true, it disables treating non-breaking space characters as regular space characters in non-tagged PDF files, so that the word finder preserves the space without breaking the word.
|
boolean |
getUnknownToStdEnc()
When true, it assumes any font with unknown or custom encoding to be Standard Roman.
|
void |
setDisableCharReordering(boolean value)
When true, it disables reconstructing the character orders, and the word finding algorithm is applied to the characters in the drawing order.
|
void |
setDisableTaggedPDF(boolean value)
When true, it disables tagged PDF support and treats the document as non-tagged PDF.
|
void |
setIgnoreCharGaps(boolean value)
When true, it disables converting large character gaps to space characters, so that the word finder reports a character space only when a space character appears in the original PDF content.
|
void |
setIgnoreLineGaps(boolean value)
When true, it disables treating vertical movements as line breaks, so that the word finder determines a line break only when a line break character or special tag information appears in the original PDF content.
|
void |
setNoAnnots(boolean value)
When true, it disables extracting text from text annotations.
|
void |
setNoEncodingGuess(boolean value)
When true, it disables guessing encoding of fonts that have unknown or custom encoding when there is no ToUnicode table.
|
void |
setNoExtCharOffset(boolean value)
When true, it disables generating extended character offset information to improve text extraction performance.
|
void |
setNoHyphenDetection(boolean value)
When true, it disables finding and removing soft hyphens in non-tagged PDF, so that the word finder trusts hard hyphens as non-soft hyphens.
|
void |
setNoLigatureExp(boolean value)
When true, it disables the expansion of ligatures using the default ligatures.
|
void |
setNoSkewedQuads(boolean value)
When true, it disables the creation of a quad per character for skewed words, words with a horizontally-aligned, but non-rectangular, bounding region.
|
void |
setNoStyleInfo(boolean value)
When true, it disables generating character style information to improve text extraction performance and memory efficiency.
|
void |
setNoTextRenderMode3(boolean value)
When true, it disables extracting text with Text Rendering mode Tr = 3 ("Neither fill nor stroke text (invisible).").
|
void |
setNoXYSort(boolean value)
When true, it disables generating an XY-ordered word list.
|
void |
setPreciseQuad(boolean value)
When true, the bounding box or bounding quad will be set based on actual glyph bounding box.
|
void |
setPreserveRedundantChars(boolean value)
When true, it disables detecting and removing redundant characters.
|
void |
setPreserveSpaces(boolean value)
When true, the word finder preserves space characters during word breaking.
|
void |
setTrustNBSpace(boolean value)
When true, it disables treating non-breaking space characters as regular space characters in non-tagged PDF files, so that the word finder preserves the space without breaking the word.
|
void |
setUnknownToStdEnc(boolean value)
When true, it assumes any font with unknown or custom encoding to be Standard Roman.
|
public WordFinderConfig()
public void delete()
public void setDisableTaggedPDF(boolean value)
public boolean getDisableTaggedPDF()
public void setNoXYSort(boolean value)
public boolean getNoXYSort()
public void setPreserveSpaces(boolean value)
public boolean getPreserveSpaces()
public void setNoLigatureExp(boolean value)
fi
ff
fl
ffi
ffl
ch
cl
ct
ll
ss
fs
st
oe
OE
public boolean getNoLigatureExp()
fi
ff
fl
ffi
ffl
ch
cl
ct
ll
ss
fs
st
oe
OE
public void setNoEncodingGuess(boolean value)
public boolean getNoEncodingGuess()
public void setUnknownToStdEnc(boolean value)
public boolean getUnknownToStdEnc()
public void setIgnoreCharGaps(boolean value)
public boolean getIgnoreCharGaps()
public void setIgnoreLineGaps(boolean value)
public boolean getIgnoreLineGaps()
public void setNoAnnots(boolean value)
public boolean getNoAnnots()
public void setNoHyphenDetection(boolean value)
public boolean getNoHyphenDetection()
public void setTrustNBSpace(boolean value)
public boolean getTrustNBSpace()
public void setNoExtCharOffset(boolean value)
public boolean getNoExtCharOffset()
public void setNoStyleInfo(boolean value)
public boolean getNoStyleInfo()
public void setPreserveRedundantChars(boolean value)
Since this option may leave extra characters with overlapping bounding boxes, using it together with the disableCharReordering option is recommended for more consistent text extraction results.
public boolean getPreserveRedundantChars()
Since this option may leave extra characters with overlapping bounding boxes, using it together with the disableCharReordering option is recommended for more consistent text extraction results.
public void setDisableCharReordering(boolean value)
public boolean getDisableCharReordering()
public void setNoSkewedQuads(boolean value)
public boolean getNoSkewedQuads()
public void setNoTextRenderMode3(boolean value)
public boolean getNoTextRenderMode3()
public void setPreciseQuad(boolean value)
public boolean getPreciseQuad()