| Modifier and Type | Field and Description |
|---|---|
| private static final Charset | |
| private Writer | |
| private String[] | |
| private ByteArrayOutputStream | |
| private Writer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | endPage(PDPage
The page we are about to process. pdPage)Overrides org. End a page. |
| public void | generateXMLHighlight(PDDocument
The PDF to find words in. pdDocument, String The word to search for. highlightWord, Writer The resulting output xml file. xmlOutput)Generate an XML highlight string based on the PDF. |
| public void | generateXMLHighlight(PDDocument
The PDF to find words in. pdDocument, String[] The words to search for. sWords, Writer The resulting output xml file. xmlOutput)Generate an XML highlight string based on the PDF. |
| public static void | |
| private static void |
| ENCODING | back to summary |
|---|---|
| private static final Charset ENCODING | |
| highlighterOutput | back to summary |
|---|---|
| private Writer highlighterOutput | |
| searchedWords | back to summary |
|---|---|
| private String[] searchedWords | |
| textOS | back to summary |
|---|---|
| private ByteArrayOutputStream textOS | |
| textWriter | back to summary |
|---|---|
| private Writer textWriter | |
| PDFHighlighter | back to summary |
|---|---|
| public PDFHighlighter() throws IOException Default constructor.
| |
| endPage | back to summary |
|---|---|
| protected void endPage(PDPage pdPage) throws IOException Overrides org. Doc from org. End a page. Default implementation is to do nothing. Subclasses may provide additional information.
| |
| generateXMLHighlight | back to summary |
|---|---|
| public void generateXMLHighlight(PDDocument pdDocument, String highlightWord, Writer xmlOutput) throws IOException Generate an XML highlight string based on the PDF.
| |
| generateXMLHighlight | back to summary |
|---|---|
| public void generateXMLHighlight(PDDocument pdDocument, String[] sWords, Writer xmlOutput) throws IOException Generate an XML highlight string based on the PDF.
| |
| main | back to summary |
|---|---|
| public static void main(String[] args) throws IOException Command line application.
| |
| usage | back to summary |
|---|---|
| private static void usage() | |