public static class PDFRenderTargetBuilder.PDFRenderTargetImpl extends AbstractRenderTarget implements PDFTarget
| Modifier and Type | Field and Description |
|---|---|
private com.itextpdf.text.pdf.PdfContentByte |
cb |
private static boolean |
fontRegistered |
private boolean |
landscape |
private float |
marginBottom |
private float |
marginLeft |
private float |
marginRight |
private float |
marginTop |
private com.itextpdf.text.Rectangle |
pageSize |
cancel, progressTicketLANDSCAPE, MARGIN_BOTTOM, MARGIN_LEFT, MARGIN_RIGHT, MARGIN_TOP, PAGESIZE, PDF_CONTENT_BYTEG2D_TARGET, PDF_TARGET, SVG_TARGET| Constructor and Description |
|---|
PDFRenderTargetBuilder.PDFRenderTargetImpl(com.itextpdf.text.pdf.PdfContentByte cb,
CanvasSize cs,
com.itextpdf.text.Rectangle size,
float marginLeft,
float marginRight,
float marginTop,
float marginBottom,
boolean landscape) |
| 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.
|
private void |
registerFonts() |
cancel, getProgressTicket, isCancelled, setProgressTicketprivate final com.itextpdf.text.pdf.PdfContentByte cb
private static boolean fontRegistered
private final float marginTop
private final float marginBottom
private final float marginLeft
private final float marginRight
private final boolean landscape
private final com.itextpdf.text.Rectangle pageSize
public PDFRenderTargetBuilder.PDFRenderTargetImpl(com.itextpdf.text.pdf.PdfContentByte cb,
CanvasSize cs,
com.itextpdf.text.Rectangle size,
float marginLeft,
float marginRight,
float marginTop,
float marginBottom,
boolean landscape)
public com.itextpdf.text.pdf.PdfContentByte getContentByte()
PDFTargetPDFContentBype instance of the PDFTarget. PDFContentByte
offers a set of drawing functions which can be used by Renderer objects.getContentByte in interface PDFTargetpublic com.itextpdf.text.pdf.BaseFont getBaseFont(Font font)
PDFTarget
If font can't be found in iText's default fonts or registered
fonts it returns the default Helvetica font.
getBaseFont in interface PDFTargetfont - the reference Java fontprivate void registerFonts()
public float getMarginBottom()
PDFTargetgetMarginBottom in interface PDFTargetpublic float getMarginLeft()
PDFTargetgetMarginLeft in interface PDFTargetpublic float getMarginRight()
PDFTargetgetMarginRight in interface PDFTargetpublic float getMarginTop()
PDFTargetgetMarginTop in interface PDFTargetpublic boolean isLandscape()
PDFTargetisLandscape in interface PDFTargettrue if the orientation is landscape, false
if portrait.public com.itextpdf.text.Rectangle getPageSize()
PDFTargetgetPageSize in interface PDFTargetCopyright © 2007–2016 Gephi Consortium. All rights reserved.