Interface IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv

  • Enclosing interface:
    IPdfBoxGraphics2DFontTextDrawer

    public static interface IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv
    Enviroment for font based drawing of text
    • Method Detail

      • getDocument

        org.apache.pdfbox.pdmodel.PDDocument getDocument()
        Returns:
        the document we are writing to
      • getContentStream

        org.apache.pdfbox.pdmodel.PDPageContentStream getContentStream()
        Returns:
        the content stream
      • getFont

        Font getFont()
        Returns:
        the current font set on the graphics. This is the "default" font to use when no other font is set on the AttributedCharacterIterator.
      • getPaint

        Paint getPaint()
        Returns:
        the current paint set on the graphics. This is the "default" paint when no other paint is set on on the AttributedCharacterIterator.
      • applyPaint

        void applyPaint​(Paint paint)
                 throws IOException
        Apply the given paint on the current content stream
        Parameters:
        paint - Paint to apply
        Throws:
        IOException - if an IO error occurs when writing the paint to the content stream.
      • getGraphicsBBox

        org.apache.pdfbox.pdmodel.common.PDRectangle getGraphicsBBox()
        Returns:
        the bbox of the PdfBoxGraphics2D
      • getResources

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