|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.text.pdf.parser.PdfContentStreamProcessor
public class PdfContentStreamProcessor
Processor for a PDF content Stream.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULTOPERATOR
Default operator |
| Constructor Summary | |
|---|---|
PdfContentStreamProcessor(RenderListener renderListener)
Creates a new PDF Content Stream Processor that will send it's output to the designated render listener. |
|
| Method Summary | |
|---|---|
void |
processContent(byte[] contentBytes,
PdfDictionary resources)
Processes PDF syntax. |
ContentOperator |
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. |
XObjectDoHandler |
registerXObjectDoHandler(PdfName xobjectSubType,
XObjectDoHandler handler)
Registers a Do handler that will be called when Do for the provided XObject subtype is encountered during content processing. |
void |
reset()
Resets the graphics state stack, matrices and resources. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULTOPERATOR
| Constructor Detail |
|---|
public PdfContentStreamProcessor(RenderListener renderListener)
renderListener - the RenderListener that will receive rendering notifications| Method Detail |
|---|
public XObjectDoHandler registerXObjectDoHandler(PdfName xobjectSubType,
XObjectDoHandler handler)
xobjectSubType - the XObject subtype this handler will process, or PdfName.DEFAULT for a catch-all handlerhandler - the handler that will receive notification when the Do operator for the specified subtype is encountered
public ContentOperator registerContentOperator(java.lang.String operatorString,
ContentOperator operator)
operatorString - the operator id, or DEFAULTOPERATOR for a catch-all operatoroperator - the operator that will receive notification when the operator is encountered
public void reset()
public void processContent(byte[] contentBytes,
PdfDictionary resources)
PdfContentStreamProcessor, you must call reset()
contentBytes - the bytes of a content streamresources - the resources that come with the content stream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||