public interface PDFTarget extends RenderTarget
This target is used by renderers objects to render a graph to PDF and uses the iText Java library.
The target give access to the PDFContentBype
object from itext to
draw items.
When this target is instanciated it uses property values defined in the
PreviewProperties
. Namely is uses MARGIN_LEFT
,
MARGIN_TOP
, MARGIN_BOTTOM
, MARGIN_RIGHT
,
LANDCAPE
and PAGESIZE
.
Modifier and Type | Field and Description |
---|---|
static String |
LANDSCAPE |
static String |
MARGIN_BOTTOM |
static String |
MARGIN_LEFT |
static String |
MARGIN_RIGHT |
static String |
MARGIN_TOP |
static String |
PAGESIZE |
static String |
PDF_CONTENT_BYTE |
G2D_TARGET, PDF_TARGET, SVG_TARGET
Modifier and Type | Method and Description |
---|---|
com.itextpdf.text.pdf.BaseFont |
getBaseFont(Font font)
Get a the equivalent in iText of the Java font.
|
com.itextpdf.text.pdf.PdfContentByte |
getContentByte()
Returns the
PDFContentBype instance of the PDFTarget. |
float |
getMarginBottom()
Returns the margin at the bottom of the page.
|
float |
getMarginLeft()
Returns the margin at the left of the page.
|
float |
getMarginRight()
Returns the margin at the right of the page.
|
float |
getMarginTop()
Returns the margin at the top of the page.
|
com.itextpdf.text.Rectangle |
getPageSize()
Returns the page's size.
|
boolean |
isLandscape()
Returns whether the orientation is in landscape or portrait.
|
static final String PDF_CONTENT_BYTE
static final String MARGIN_LEFT
static final String MARGIN_TOP
static final String MARGIN_BOTTOM
static final String MARGIN_RIGHT
static final String LANDSCAPE
static final String PAGESIZE
com.itextpdf.text.pdf.PdfContentByte getContentByte()
PDFContentBype
instance of the PDFTarget. PDFContentByte
offers a set of drawing functions which can be used by Renderer objects.com.itextpdf.text.pdf.BaseFont getBaseFont(Font font)
If font
can't be found in iText's default fonts or registered
fonts it returns the default Helvetica font.
font
- the reference Java fontfloat getMarginBottom()
float getMarginLeft()
float getMarginRight()
float getMarginTop()
boolean isLandscape()
true
if the orientation is landscape, false
if portrait.com.itextpdf.text.Rectangle getPageSize()
Copyright © 2007–2017 Gephi Consortium. All rights reserved.