|
iText 9.2.0 API
|
Processor for a PDF content stream. More...
Classes |
|
| class | PopGraphicsStateOperator |
| A handler that implements operator (Q). More... |
|
Public Member Functions |
|
| PdfCanvasProcessor (IEventListener eventListener) | |
| Creates a new PDF Content Stream Processor that will send its output to the designated render listener. More... |
|
| PdfCanvasProcessor (IEventListener eventListener, IDictionary< String, IContentOperator > additionalContentOperators) | |
| Creates a new PDF Content Stream Processor that will send its output to the designated render listener. More... |
|
| virtual IXObjectDoHandler | RegisterXObjectDoHandler (PdfName xobjectSubType, IXObjectDoHandler handler) |
| Registers a Do handler that will be called when Do for the provided XObject subtype is encountered during content processing. More... |
|
| virtual IContentOperator | RegisterContentOperator (String operatorString, IContentOperator @operator) |
| Registers a content operator that will be called when the specified operator string is encountered during content processing. More... |
|
| virtual ICollection< String > | GetRegisteredOperatorStrings () |
| Gets the System.Collections.ICollection |
|
| virtual void | Reset () |
| Resets the graphics state stack, matrices and resources. More... |
|
| virtual ParserGraphicsState | GetGraphicsState () |
| Gets the current ParserGraphicsState More... |
|
| virtual void | ProcessContent (byte[] contentBytes, PdfResources resources) |
| Processes PDF syntax. More... |
|
| virtual void | ProcessPageContent (PdfPage page) |
| Processes PDF syntax. More... |
|
| virtual IEventListener | GetEventListener () |
| Accessor method for the iText.Kernel.Pdf.Canvas.Parser.Listener.IEventListener object maintained in this class. More... |
|
Static Public Attributes |
|
| const String | DEFAULT_OPERATOR = "DefaultOperator" |
Package Functions |
|
| virtual void | PopulateOperators () |
| Loads all the supported graphics and text state operators in a map. More... |
|
| virtual void | PaintPath (int operation, int rule) |
| Displays the current path. More... |
|
| virtual void | InvokeOperator (PdfLiteral @operator, IList< PdfObject > operands) |
| Invokes an operator. More... |
|
| virtual PdfStream | GetXObjectStream (PdfName xobjectName) |
| virtual PdfResources | GetResources () |
| virtual void | PopulateXObjectDoHandlers () |
| virtual PdfFont | GetFont (PdfDictionary fontDict) |
| Creates a iText.Kernel.Font.PdfFont object by a font dictionary. More... |
|
| virtual void | BeginMarkedContent (PdfName tag, PdfDictionary dict) |
| Add to the marked content stack More... |
|
| virtual void | EndMarkedContent () |
| Remove the latest marked content from the stack. More... |
|
| virtual void | EventOccurred (IEventData data, EventType type) |
| This is a proxy to pass only those events to the event listener which are supported by it. More... |
|
Package Attributes |
|
| readonly IEventListener | eventListener |
| Listener that will be notified of render events More... |
|
| readonly ICollection< EventType > | supportedEvents |
| Cache supported events in case the user's iText.Kernel.Pdf.Canvas.Parser.Listener.IEventListener.GetSupportedEvents() method is not very efficient More... |
|
| Path | currentPath = new Path() |
| bool | isClip |
| Indicates whether the current clipping path should be modified by intersecting it with the current path. More... |
|
| int | clippingRule |
| Specifies the filling rule which should be applied while calculating new clipping path. More... |
|
Processor for a PDF content stream.
|
inline |
Creates a new PDF Content Stream Processor that will send its output to the designated render listener.
| eventListener | the iText.Kernel.Pdf.Canvas.Parser.Listener.IEventListener that will receive rendering notifications |
|
inline |
Creates a new PDF Content Stream Processor that will send its output to the designated render listener.
Creates a new PDF Content Stream Processor that will send its output to the designated render listener. Also allows registration of custom IContentOperators that can influence how (and whether or not) the PDF instructions will be parsed.
| eventListener | the iText.Kernel.Pdf.Canvas.Parser.Listener.IEventListener that will receive rendering notifications |
| additionalContentOperators | an optional map of custom IContentOperator s for rendering instructions |
|
inlinepackagevirtual |
Add to the marked content stack
| tag | the tag of the marked content |
| dict | the PdfDictionary associated with the marked content |
|
inlinepackagevirtual |
Remove the latest marked content from the stack.
Remove the latest marked content from the stack. Keeps track of the BMC, BDC and EMC operators.
|
inlinepackagevirtual |
This is a proxy to pass only those events to the event listener which are supported by it.
| data | event data |
| type | event type |
|
inlinevirtual |
Accessor method for the iText.Kernel.Pdf.Canvas.Parser.Listener.IEventListener object maintained in this class.
Accessor method for the iText.Kernel.Pdf.Canvas.Parser.Listener.IEventListener object maintained in this class. Necessary for implementing custom ContentOperator implementations.
|
inlinepackagevirtual |
Creates a iText.Kernel.Font.PdfFont object by a font dictionary.
Creates a iText.Kernel.Font.PdfFont object by a font dictionary. The font may have been cached in case it is an indirect object.
| fontDict | the font dictionary to create the font from |
|
inlinevirtual |
Gets the current ParserGraphicsState
|
inlinevirtual |
Gets the System.Collections.ICollection
System.Collections.ICollection
|
inlinepackagevirtual |
Invokes an operator.
| operator | the PDF Syntax of the operator |
| operands | a list with operands |
|
inlinepackagevirtual |
Displays the current path.
| operation | One of the possible combinations of iText.Kernel.Pdf.Canvas.Parser.Data.PathRenderInfo.STROKE and iText.Kernel.Pdf.Canvas.Parser.Data.PathRenderInfo.FILL values or iText.Kernel.Pdf.Canvas.Parser.Data.PathRenderInfo.NO_OP |
| rule | Either iText.Kernel.Pdf.Canvas.PdfCanvasConstants.FillingRule.NONZERO_WINDING or iText.Kernel.Pdf.Canvas.PdfCanvasConstants.FillingRule.EVEN_ODD In case it isn't applicable pass any byte value. |
|
inlinepackagevirtual |
Loads all the supported graphics and text state operators in a map.
|
inlinevirtual |
Processes PDF syntax.
Processes PDF syntax. Note: If you re-use a given PdfCanvasProcessor , you must call Reset()
| contentBytes | the bytes of a content stream |
| resources | the resources of the content stream. Must not be null. |
|
inlinevirtual |
Processes PDF syntax.
Processes PDF syntax. Note: If you re-use a given PdfCanvasProcessor , you must call Reset()
| page | the page to process |
|
inlinevirtual |
Registers a content operator that will be called when the specified operator string is encountered during content processing.
Registers a content operator that will be called when the specified operator string is encountered during content processing.
If you register an operator, it is a very good idea to pass the call on to the existing registered operator (returned by this call), otherwise you may inadvertently change the internal behavior of the processor.
| operatorString | the operator id, or DEFAULT_OPERATOR for a catch-all operator |
| operator | the operator that will receive notification when the operator is encountered |
|
inlinevirtual |
Registers a Do handler that will be called when Do for the provided XObject subtype is encountered during content processing.
Registers a Do handler that will be called when Do for the provided XObject subtype is encountered during content processing.
If you register a handler, it is a very good idea to pass the call on to the existing registered handler (returned by this call), otherwise you may inadvertently change the internal behavior of the processor.
| xobjectSubType | the XObject subtype this handler will process, or PdfName.DEFAULT for a catch-all handler |
| handler | the handler that will receive notification when the Do operator for the specified subtype is encountered |
|
inlinevirtual |
Resets the graphics state stack, matrices and resources.
|
package |
Specifies the filling rule which should be applied while calculating new clipping path.
|
package |
Listener that will be notified of render events
|
package |
Indicates whether the current clipping path should be modified by intersecting it with the current path.
|
package |
Cache supported events in case the user's iText.Kernel.Pdf.Canvas.Parser.Listener.IEventListener.GetSupportedEvents() method is not very efficient