| java.lang.Object org.pdfbox.util.PDFStreamEngine org.pdfbox.util.PDFTextStripper org.pdfbox.util.PDFHighlighter
PDFHighlighter | public PDFHighlighter() throws IOException(Code) | | Default constructor.
throws: IOException - If there is an error constructing this class. |
generateXMLHighlight | public void generateXMLHighlight(PDDocument pdDocument, String highlightWord, Writer xmlOutput) throws IOException(Code) | | Generate an XML highlight string based on the PDF.
Parameters: pdDocument - The PDF to find words in. Parameters: highlightWord - The word to search for. Parameters: xmlOutput - The resulting output xml file. throws: IOException - If there is an error reading from the PDF, or writing to the XML. |
generateXMLHighlight | public void generateXMLHighlight(PDDocument pdDocument, String[] sWords, Writer xmlOutput) throws IOException(Code) | | Generate an XML highlight string based on the PDF.
Parameters: pdDocument - The PDF to find words in. Parameters: sWords - The words to search for. Parameters: xmlOutput - The resulting output xml file. throws: IOException - If there is an error reading from the PDF, or writing to the XML. |
main | public static void main(String[] args) throws IOException(Code) | | Command line application.
Parameters: args - The command line arguments to the application. throws: IOException - If there is an error generating the highlight file. |
|
|