| Constructor and Description |
|---|
PdfDisplay() |
| Modifier and Type | Method and Description |
|---|---|
float |
getMargin() |
protected void |
postProcessGraphics2d(Graphics2D g2d,
com.itextpdf.text.Rectangle bounds)
Apply post processing to the graphics after the image has been rendered.
|
byte[] |
renderToBytes(Layout<?> layout) |
void |
renderToFile(Layout<?> layout,
File file) |
void |
renderToOutputStream(Layout<?> layout,
OutputStream outputStream) |
PdfDisplay |
setMargin(float margin) |
public void renderToOutputStream(Layout<?> layout, OutputStream outputStream) throws IOException, LayoutException
renderToOutputStream in interface DisplayIOExceptionLayoutExceptionpublic void renderToFile(Layout<?> layout, File file) throws IOException, LayoutException
renderToFile in interface DisplayIOExceptionLayoutExceptionpublic byte[] renderToBytes(Layout<?> layout) throws IOException, LayoutException
renderToBytes in interface DisplayIOExceptionLayoutExceptionprotected void postProcessGraphics2d(Graphics2D g2d, com.itextpdf.text.Rectangle bounds)
public float getMargin()
public PdfDisplay setMargin(float margin)
Copyright © 2013 dontdrinkandroot. All Rights Reserved.