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 PDFDocument
s and theirPage
s, 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 class
OutputTarget
This is a baseOutputHandler
implementation that directs all text extraction output to anAppendable
of your choice, e.g. aWriter
,StringBuilder
,CharBuffer
, and so on.class
RegionOutputTarget
ThisOutputHandler
implementation is used to selectively extract text from certain regions of each PDF page.class
SelectionOutputTarget
AnOutputTarget
derivative that restricts the content added to the givenStringBuffer
to that within the starting and ending selection points specified in the constructor.class
VisualOutputTarget
This 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 void
OutputSource. pipe(OutputHandler handler)
Equivalent toOutputSource.pipe(OutputHandler, Direction)
, with a baseDirection
determined by eitherPage.guessDirection()
(if callingpipe
on a page) orBlock.guessDirection()
(if callingpipe
on aBlock
).void
OutputSource. pipe(OutputHandler handler, Direction bd)
Extracts all available text from thisOutputSource
, sending all PDF text events to the givenOutputHandler
, with the specifiedDirection
.void
PDFTextStream. pipe(OutputHandler handler)
Deprecated.void
PDFTextStream. pipe(OutputHandler handler, Direction bd)
Deprecated. -
Uses of OutputHandler in pdfts.examples
Subclasses of OutputHandler in pdfts.examples Modifier and Type Class Description class
GoogleHTMLOutputHandler
This class is an exampleOutputHandler
implementation that builds an XHTML document to mimic the HTML view that Google offers for indexed PDF documents.class
XMLOutputTarget
This class is an exampleOutputHandler
implementation that builds up a DOM XML model of extracted PDF content.
-