public static class PDFRenderTargetBuilder.PDFRenderTargetImpl extends AbstractRenderTarget implements PDFTarget
LANDSCAPE, MARGIN_BOTTOM, MARGIN_LEFT, MARGIN_RIGHT, MARGIN_TOP, PAGESIZE, PDF_CONTENT_BYTEG2D_TARGET, PDF_TARGET, SVG_TARGET| Constructor and Description |
|---|
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.
|
cancel, getProgressTicket, isCancelled, setProgressTicketpublic 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 fontpublic 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–2017. All rights reserved.