Uses of Class
com.snowtide.pdf.OutputHandler
-
Packages that use OutputHandler Package Description com.snowtide.pdf This package contains a variety of core abstractions representing PDFDocuments and theirPages, as well as various PDFxStream interfaces and implementations thereof that simply many PDF data extraction use cases.pdfts.examples The source code for all classes in this package are included in every PDFxStream distribution, provided to demonstrate how various interfaces and extension points can be utilized to satisfy specialized PDF data extraction requirements. -
-
Uses of OutputHandler in com.snowtide.pdf
Subclasses of OutputHandler in com.snowtide.pdf Modifier and Type Class Description classOutputTargetThis is a baseOutputHandlerimplementation that directs all text extraction output to anAppendableof your choice, e.g. aWriter,StringBuilder,CharBuffer, and so on.classRegionOutputTargetThisOutputHandlerimplementation is used to selectively extract text from certain regions of each PDF page.classSelectionOutputTargetAnOutputTargetderivative that restricts the content added to the givenStringBufferto that within the starting and ending selection points specified in the constructor.classVisualOutputTargetThis OutputHandler implementation aims to preserve as much of a PDF's text layout as possible so that text extracts will retain the visual arrangement of text as present in the original document.Methods in com.snowtide.pdf with parameters of type OutputHandler Modifier and Type Method Description voidOutputSource. pipe(OutputHandler handler)Equivalent toOutputSource.pipe(OutputHandler, Direction), with a baseDirectiondetermined by eitherPage.guessDirection()(if callingpipeon a page) orBlock.guessDirection()(if callingpipeon aBlock).voidOutputSource. pipe(OutputHandler handler, Direction bd)Extracts all available text from thisOutputSource, sending all PDF text events to the givenOutputHandler, with the specifiedDirection.voidPDFTextStream. pipe(OutputHandler handler)Deprecated.voidPDFTextStream. pipe(OutputHandler handler, Direction bd)Deprecated. -
Uses of OutputHandler in pdfts.examples
Subclasses of OutputHandler in pdfts.examples Modifier and Type Class Description classGoogleHTMLOutputHandlerThis class is an exampleOutputHandlerimplementation that builds an XHTML document to mimic the HTML view that Google offers for indexed PDF documents.classXMLOutputTargetThis class is an exampleOutputHandlerimplementation that builds up a DOM XML model of extracted PDF content.
-