Package de.rototor.pdfbox.graphics2d
Interface IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv
-
- Enclosing interface:
- IPdfBoxGraphics2DFontTextDrawer
public static interface IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnvEnviroment for font based drawing of text
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidapplyPaint(Paint paint)Apply the given paint on the current content streamorg.apache.pdfbox.pdmodel.PDPageContentStreamgetContentStream()org.apache.pdfbox.pdmodel.PDDocumentgetDocument()FontgetFont()FontRenderContextgetFontRenderContext()org.apache.pdfbox.pdmodel.common.PDRectanglegetGraphicsBBox()PaintgetPaint()org.apache.pdfbox.pdmodel.PDResourcesgetResources()
-
-
-
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.
-
getFontRenderContext
FontRenderContext getFontRenderContext()
- Returns:
- the
Graphics2DFontRenderContext
-
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
-
-