Package com.itextpdf.text.pdf.pdfcleanup
Class PdfCleanUpContext
- java.lang.Object
-
- com.itextpdf.text.pdf.pdfcleanup.PdfCleanUpContext
-
class PdfCleanUpContext extends java.lang.ObjectStores parameters related to specific context which is either page or xobject (in other words: which is the object having contents stream)
-
-
Field Summary
Fields Modifier and Type Field Description private PdfContentBytecanvasprivate PdfDictionaryresourcesprivate java.util.Stack<java.util.List<PdfObject>>strokeColorOperandsPdfContentStreamProcessor is able to process only Device* color spaces, so I had to add this workaround.
-
Constructor Summary
Constructors Constructor Description PdfCleanUpContext()PdfCleanUpContext(PdfDictionary resources, PdfContentByte canvas)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfContentBytegetCanvas()PdfDictionarygetResources()java.util.List<PdfObject>peekStrokeColor()java.util.List<PdfObject>popStrokeColor()voidpushStrokeColor(java.util.List<PdfObject> strokeColorOperands)voidsetCanvas(PdfContentByte canvas)voidsetResources(PdfDictionary resources)
-
-
-
Field Detail
-
resources
private PdfDictionary resources
-
canvas
private PdfContentByte canvas
-
strokeColorOperands
private java.util.Stack<java.util.List<PdfObject>> strokeColorOperands
PdfContentStreamProcessor is able to process only Device* color spaces, so I had to add this workaround.
-
-
Constructor Detail
-
PdfCleanUpContext
public PdfCleanUpContext()
-
PdfCleanUpContext
public PdfCleanUpContext(PdfDictionary resources, PdfContentByte canvas)
-
-
Method Detail
-
getResources
public PdfDictionary getResources()
-
setResources
public void setResources(PdfDictionary resources)
-
getCanvas
public PdfContentByte getCanvas()
-
setCanvas
public void setCanvas(PdfContentByte canvas)
-
pushStrokeColor
public void pushStrokeColor(java.util.List<PdfObject> strokeColorOperands)
-
peekStrokeColor
public java.util.List<PdfObject> peekStrokeColor()
-
popStrokeColor
public java.util.List<PdfObject> popStrokeColor()
-
-