public class PDFExporter extends Object implements ByteExporter, VectorExporter, LongTask
| Constructor and Description |
|---|
PDFExporter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel()
Cancel the task.
|
boolean |
execute()
Run the export process.
|
float |
getMarginBottom() |
float |
getMarginLeft() |
float |
getMarginRight() |
float |
getMarginTop() |
com.itextpdf.text.Rectangle |
getPageSize() |
Workspace |
getWorkspace()
Returns the workspace from where data are exported
|
boolean |
isLandscape() |
void |
setLandscape(boolean landscape) |
void |
setMarginBottom(float marginBottom) |
void |
setMarginLeft(float marginLeft) |
void |
setMarginRight(float marginRight) |
void |
setMarginTop(float marginTop) |
void |
setOutputStream(OutputStream stream)
Set the stream where to export.
|
void |
setPageSize(com.itextpdf.text.Rectangle pageSize) |
void |
setProgressTicket(ProgressTicket progressTicket)
Set the progress ticket for the long task.
|
void |
setWorkspace(Workspace workspace)
Sets the worksapce from where to export data
|
public boolean execute()
Exporterpublic boolean isLandscape()
public float getMarginBottom()
public float getMarginLeft()
public float getMarginRight()
public float getMarginTop()
public com.itextpdf.text.Rectangle getPageSize()
public void setMarginBottom(float marginBottom)
public void setMarginLeft(float marginLeft)
public void setMarginRight(float marginRight)
public void setMarginTop(float marginTop)
public void setPageSize(com.itextpdf.text.Rectangle pageSize)
public void setOutputStream(OutputStream stream)
ByteExportersetOutputStream in interface ByteExporterstream - the stream the exporter is to writepublic void setWorkspace(Workspace workspace)
ExportersetWorkspace in interface Exporterworkspace - the workspace to exportpublic void setLandscape(boolean landscape)
public Workspace getWorkspace()
ExportergetWorkspace in interface Exporterpublic boolean cancel()
LongTasktrue if the task has been sucessfully cancelled, false otherwise.public void setProgressTicket(ProgressTicket progressTicket)
LongTasksetProgressTicket in interface LongTaskprogressTicket - the progress ticket for this taskCopyright © 2007–2017. All rights reserved.