public static interface IPdfBoxGraphics2DFontTextDrawer.IFontTextDrawerEnv
| Modifier and Type | Method and Description |
|---|---|
void |
applyPaint(Paint paint,
Shape shapeToDraw)
Apply the given paint on the current content stream
|
void |
applyStroke(Stroke stroke)
Apply this stroke on the current content stream
|
Graphics2D |
getCalculationGraphics() |
org.apache.pdfbox.pdmodel.PDPageContentStream |
getContentStream() |
AffineTransform |
getCurrentEffectiveTransform() |
org.apache.pdfbox.pdmodel.PDDocument |
getDocument() |
Font |
getFont() |
FontRenderContext |
getFontRenderContext() |
org.apache.pdfbox.pdmodel.common.PDRectangle |
getGraphicsBBox() |
Paint |
getPaint() |
org.apache.pdfbox.pdmodel.PDResources |
getResources() |
org.apache.pdfbox.pdmodel.PDDocument getDocument()
org.apache.pdfbox.pdmodel.PDPageContentStream getContentStream()
Font getFont()
AttributedCharacterIterator.Paint getPaint()
AttributedCharacterIterator.void applyPaint(Paint paint, Shape shapeToDraw) throws IOException
paint - Paint to applyshapeToDraw - the shape to draw of the text, if known. This is needed to
calculate correct gradients.IOException - if an IO error occurs when writing the paint to the content
stream.FontRenderContext getFontRenderContext()
Graphics2D FontRenderContextorg.apache.pdfbox.pdmodel.common.PDRectangle getGraphicsBBox()
PdfBoxGraphics2Dorg.apache.pdfbox.pdmodel.PDResources getResources()
Graphics2D getCalculationGraphics()
void applyStroke(Stroke stroke) throws IOException
stroke - the stroke to applyIOExceptionAffineTransform getCurrentEffectiveTransform()
Copyright © 2022. All rights reserved.