Interface IPdfBoxGraphics2DPaintApplier.IPaintEnv

    • Method Detail

      • getDocument

        org.apache.pdfbox.pdmodel.PDDocument getDocument()
        Returns:
        the document
      • getResources

        org.apache.pdfbox.pdmodel.PDResources getResources()
        Returns:
        the resource of the content stream
      • getComposite

        java.awt.Composite getComposite()
        Returns:
        the Graphics2D Composite
      • getXORMode

        java.awt.Color getXORMode()
        Returns:
        the Graphics2D XOR Mode Color or null if paint mode is active.
      • getShapeToDraw

        java.awt.Shape getShapeToDraw()
        The shape information is need to be able to correctly render grandients.
        Returns:
        get the shape which will be drawn or filled with this paint. Null is returned if no shape is known.
      • ensureShapeIsWalked

        void ensureShapeIsWalked()
                          throws java.io.IOException
        Call this to ensure that the current shape has been walked on the content stream. You are not allowed to do any graphics state changes after this, as this would be illegal in PDF. (But most PDF reader render this fine anyway...)
        This mostly only needed for ShadedFills
        Throws:
        java.io.IOException