public abstract class PdfGraphicExporter extends GraphicExporter
| Modifier and Type | Field and Description |
|---|---|
static PdfGraphicExporter |
BASIC
Exporter which uses the default font mapper.
|
static PdfGraphicExporter |
GLYPH_TEXT
Exporter which writes text as shapes not using fonts.
|
EPS, EPS_GZIP, GIF, JPEG, PNG, PNG_TRANSPARENT, SVG| Modifier | Constructor and Description |
|---|---|
protected |
PdfGraphicExporter()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static PdfGraphicExporter |
createExternalFontExporter(URL fontsUrl)
Returns an exporter which uses externally stored fonts.
|
abstract Graphics2D |
createGraphics(com.lowagie.text.pdf.PdfContentByte pcb,
int width,
int height)
Returns a graphics context which can be used to write to a given
PDF content object.
|
void |
exportGraphic(Picture picture,
OutputStream out)
Paints the given picture to an output stream using some graphics format
or other.
|
getContentEncoding, getDescription, getFileSuffixes, getKnownExporters, getMimeType, getName, isVector, toPicture, toStringpublic static PdfGraphicExporter BASIC
public static PdfGraphicExporter GLYPH_TEXT
public static PdfGraphicExporter createExternalFontExporter(URL fontsUrl)
GLYPH_TEXT.fontsUrl - location of a text file of font resource strings
(typically file names or URLs of .ttf files)public void exportGraphic(Picture picture, OutputStream out) throws IOException
GraphicExporterexportGraphic in class GraphicExporterpicture - picture to drawout - destination output streamIOExceptionpublic abstract Graphics2D createGraphics(com.lowagie.text.pdf.PdfContentByte pcb, int width, int height)
pcb - PDF content objectwidth - in pixelsheight - in pixelsCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.