Package com.itextpdf.text.pdf.pdfcleanup
Class PdfCleanUpContext
- java.lang.Object
-
- com.itextpdf.text.pdf.pdfcleanup.PdfCleanUpContext
-
class PdfCleanUpContext extends java.lang.Object
Stores 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 PdfContentByte
canvas
private PdfDictionary
resources
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 Summary
Constructors Constructor Description PdfCleanUpContext()
PdfCleanUpContext(PdfDictionary resources, PdfContentByte canvas)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PdfContentByte
getCanvas()
PdfDictionary
getResources()
java.util.List<PdfObject>
peekStrokeColor()
java.util.List<PdfObject>
popStrokeColor()
void
pushStrokeColor(java.util.List<PdfObject> strokeColorOperands)
void
setCanvas(PdfContentByte canvas)
void
setResources(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()
-
-