- java.lang.Object
-
- com.itextpdf.text.pdf.parser.PdfContentStreamProcessor
-
public class PdfContentStreamProcessor extends java.lang.ObjectProcessor for a PDF content Stream.- Since:
- 2.1.4
-
-
Constructor Summary
Constructors Constructor Description PdfContentStreamProcessor(RenderListener renderListener)Creates a new PDF Content Stream Processor that will send it's output to the designated render listener.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidprocessContent(byte[] contentBytes, PdfDictionary resources)Processes PDF syntaxvoidregisterContentOperator(java.lang.String operatorString, ContentOperator operator)Registers a content operator that will be called when the specified operator string is encountered during content processing.voidreset()Resets the graphics state stack, matrices and resources.
-
-
-
Constructor Detail
-
PdfContentStreamProcessor
public PdfContentStreamProcessor(RenderListener renderListener)
Creates a new PDF Content Stream Processor that will send it's output to the designated render listener.- Parameters:
renderListener- theAbstractRenderListenerthat will receive rendering notifications
-
-
Method Detail
-
registerContentOperator
public void registerContentOperator(java.lang.String operatorString, ContentOperator operator)Registers a content operator that will be called when the specified operator string is encountered during content processing. Each operator may be registered only once (it is not legal to have multiple operators with the same operatorString)- Parameters:
operatorString- the operator idoperator- the operator that will receive notification when the operator is encountered- Since:
- 2.1.7
-
reset
public void reset()
Resets the graphics state stack, matrices and resources.
-
processContent
public void processContent(byte[] contentBytes, PdfDictionary resources)Processes PDF syntax- Parameters:
contentBytes- the bytes of a content streamresources- the resources that come with the content stream
-
-