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| Modifier | Constructor and Description |
|---|---|
protected |
PdfGraphicExporter()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static PdfGraphicExporter |
createExternalFontExporter(java.net.URL fontsUrl)
Returns an exporter which uses externally stored fonts.
|
abstract java.awt.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,
java.io.OutputStream out)
Paints the given picture to an output stream using some graphics format
or other.
|
getContentEncoding, getDescription, getFileSuffixes, getKnownExporters, getMimeType, getName, toPicture, toStringpublic static PdfGraphicExporter BASIC
public static PdfGraphicExporter GLYPH_TEXT
public static PdfGraphicExporter createExternalFontExporter(java.net.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, java.io.OutputStream out) throws java.io.IOException
GraphicExporterexportGraphic in class GraphicExporterpicture - picture to drawout - destination output streamjava.io.IOExceptionpublic abstract java.awt.Graphics2D createGraphics(com.lowagie.text.pdf.PdfContentByte pcb,
int width,
int height)
pcb - PDF content objectwidth - in pixelsheight - in pixelsCopyright © 2017 Central Laboratory of the Research Councils. All Rights Reserved.