public class PDFTextStreamEngine extends PDFStreamEngine
TextPosition| Constructor and Description |
|---|
PDFTextStreamEngine()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
processPage(PDPage page)
This will initialise and process the contents of the stream.
|
protected void |
processTextPosition(TextPosition text)
A method provided as an event interface to allow a subclass to perform some specific functionality when text
needs to be processed.
|
protected void |
showGlyph(Matrix textRenderingMatrix,
PDFont font,
int code,
String unicode,
Vector displacement)
This method was originally written by Ben Litchfield for PDFStreamEngine.
|
addOperator, addOperatorIfAbsent, applyTextAdjustment, beginMarkedContentSequence, beginText, decreaseLevel, endMarkedContentSequence, endText, getAppearance, getCurrentPage, getGraphicsStackSize, getGraphicsState, getInitialMatrix, getLevel, getResources, getTextLineMatrix, getTextMatrix, increaseLevel, operatorException, processAnnotation, processChildStream, processOperator, processOperator, processSoftMask, processStream, processTilingPattern, processTilingPattern, processTransparencyGroup, processType3Stream, restoreGraphicsStack, restoreGraphicsState, saveGraphicsStack, saveGraphicsState, setLineDashPattern, setTextLineMatrix, setTextMatrix, showAnnotation, showFontGlyph, showForm, showText, showTextString, showTextStrings, showTransparencyGroup, showType3Glyph, transformedPoint, transformWidth, unsupportedOperatorpublic PDFTextStreamEngine()
throws IOException
IOExceptionpublic void processPage(PDPage page) throws IOException
processPage in class PDFStreamEnginepage - the page to processIOException - if there is an error accessing the stream.protected void showGlyph(Matrix textRenderingMatrix, PDFont font, int code, String unicode, Vector displacement) throws IOException
showGlyph in class PDFStreamEnginetextRenderingMatrix - the current text rendering matrix, Trmfont - the current fontcode - internal PDF character code for the glyphunicode - the Unicode text for this glyph, or null if the PDF does provide itdisplacement - the displacement (i.e. advance) of the glyph in text spaceIOException - if the glyph cannot be processedprotected void processTextPosition(TextPosition text)
text - The text to be processed.Copyright © 2020 sejda. All rights reserved.