public class PdfCanvasCsConverter
extends com.itextpdf.kernel.pdf.canvas.parser.PdfCanvasProcessor
Constructor and Description |
---|
PdfCanvasCsConverter(com.itextpdf.kernel.pdf.PdfDocument document, AbstractCsConverter csConverter, OptimizationSession session)
Instantiates a new PdfCanvasCsConverter instance based on PDF document and color space converter.
|
Modifier and Type | Method and Description |
---|---|
com.itextpdf.kernel.pdf.canvas.PdfCanvas |
getCanvas()
Gets resulting PDF canvas.
|
protected void |
invokeOperator(com.itextpdf.kernel.pdf.PdfLiteral operator, List
Process PDF content stream operators.
|
beginMarkedContent, endMarkedContent, eventOccurred, getEventListener, getFont, getGraphicsState, getRegisteredOperatorStrings, getResources, getXObjectStream, paintPath, populateOperators, populateXObjectDoHandlers, processContent, processPageContent, registerContentOperator, registerXObjectDoHandler, reset
public PdfCanvasCsConverter(com.itextpdf.kernel.pdf.PdfDocument document, AbstractCsConverter csConverter, OptimizationSession session)
PdfCanvasCsConverter
instance based on PDF document and color space converter.
document
- the document that the resulting content stream will be written to
csConverter
- the color space converter instance
session
- is an auxiliary object used to support share data between stages of optimization process
public com.itextpdf.kernel.pdf.canvas.PdfCanvas getCanvas()
protected void invokeOperator(com.itextpdf.kernel.pdf.PdfLiteral operator, Listoperands)
AbstractCsConverter.convertContentStreamOperands(PdfColorSpace, PdfColorSpace, String, List, OptimizationSession)
method and then written to the resulting PDF canvas, otherwise operator with operands will be immediately written to th resulting PDF canvas.
invokeOperator
in class com.itextpdf.kernel.pdf.canvas.parser.PdfCanvasProcessor
operator
-
operands
-
Copyright © 1998–2020 iText Group NV. All rights reserved.