public class PdfContentStreamHandler extends Object
| Constructor and Description |
|---|
PdfContentStreamHandler(TextAssembler renderListener) |
| Modifier and Type | Method and Description |
|---|---|
CMapAwareDocumentFont |
getCurrentFont() |
protected Matrix |
getCurrentTextLineMatrix()
Returns the current line matrix.
|
protected Matrix |
getCurrentTextMatrix()
Returns the current text matrix.
|
String |
getResultantText() |
protected void |
installDefaultOperators()
Loads all the supported graphics and text state operators in a map.
|
void |
invokeOperator(PdfLiteral operator,
List<PdfObject> operands,
PdfDictionary resources)
Invokes an operator.
|
Optional<ContentOperator> |
lookupOperator(String operatorName)
Get the operator to process a command with a given name
|
void |
registerContentOperator(ContentOperator operator)
Registers a content operator that will be called when the specified
operator string is encountered during content processing.
|
void |
reset() |
public PdfContentStreamHandler(TextAssembler renderListener)
public void registerContentOperator(ContentOperator operator)
operator - the operator that will receive notification when the operator
is encounteredprotected void installDefaultOperators()
@Nonnull public Optional<ContentOperator> lookupOperator(String operatorName)
operatorName - name of the operator that we might need to callpublic void invokeOperator(PdfLiteral operator, List<PdfObject> operands, PdfDictionary resources)
operator - the PDF Syntax of the operatoroperands - a list with operandsresources - Pdf Resources found in the file containing the stream.public void reset()
protected Matrix getCurrentTextMatrix()
protected Matrix getCurrentTextLineMatrix()
public CMapAwareDocumentFont getCurrentFont()
Copyright © 2019. All rights reserved.