class LegacyPDFStreamEngine extends PDFStreamEngine
Modifier and Type | Field and Description |
---|---|
private GlyphList |
glyphList |
private static org.apache.commons.logging.Log |
LOG |
private int |
pageRotation |
private PDRectangle |
pageSize |
private Matrix |
translateMatrix |
Constructor and Description |
---|
LegacyPDFStreamEngine()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
processPage(PDPage page)
This will initialize 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,
java.lang.String unicode,
Vector displacement)
This method was originally written by Ben Litchfield for PDFStreamEngine.
|
addOperator, applyTextAdjustment, beginMarkedContentSequence, beginText, decreaseLevel, endMarkedContentSequence, endText, getAppearance, getCurrentPage, getGraphicsStackSize, getGraphicsState, getInitialMatrix, getLevel, getResources, getTextLineMatrix, getTextMatrix, increaseLevel, operatorException, processAnnotation, processChildStream, processOperator, processOperator, processSoftMask, processTilingPattern, processTilingPattern, processTransparencyGroup, processType3Stream, registerOperatorProcessor, restoreGraphicsStack, restoreGraphicsState, saveGraphicsStack, saveGraphicsState, setLineDashPattern, setTextLineMatrix, setTextMatrix, showAnnotation, showFontGlyph, showForm, showText, showTextString, showTextStrings, showTransparencyGroup, showType3Glyph, transformedPoint, transformWidth, unsupportedOperator
private static final org.apache.commons.logging.Log LOG
private int pageRotation
private PDRectangle pageSize
private Matrix translateMatrix
private final GlyphList glyphList
LegacyPDFStreamEngine() throws java.io.IOException
java.io.IOException
public void processPage(PDPage page) throws java.io.IOException
processPage
in class PDFStreamEngine
page
- the page to processjava.io.IOException
- if there is an error accessing the stream.protected void showGlyph(Matrix textRenderingMatrix, PDFont font, int code, java.lang.String unicode, Vector displacement) throws java.io.IOException
showGlyph
in class PDFStreamEngine
textRenderingMatrix
- 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 spacejava.io.IOException
- if the glyph cannot be processedprotected void processTextPosition(TextPosition text)
text
- The text to be processed.