public class PdfExporter
extends java.lang.Object
| Constructor and Description |
|---|
PdfExporter()
Initializes a new instance of the
PdfExporter class. |
| Modifier and Type | Method and Description |
|---|---|
void |
export(Worksheet worksheet,
java.lang.String filePath)
Exports the specified worksheet as a PDF file.
|
boolean |
getEnableGridLines()
Gets a value indicating whether to export the grid lines.
|
float |
getMarginBottom()
Gets the bottom margin for the PDF pages, in inches.
|
float |
getMarginLeft()
Gets the left margin for the PDF pages, in inches.
|
float |
getMarginRight()
Gets the right margin for the PDF pages, in inches.
|
float |
getMarginTop()
Gets the top margin for the PDF pages, in inches.
|
int |
getMaxPages()
Gets the maximum number of pages to export, or 0, to export all pages.
|
com.mindfusion.pdf.PageOrientation |
getPageOrientation()
Gets the orientation of the exported pages.
|
com.mindfusion.pdf.PageSizesEnum |
getPageSize()
Gets the size of the PDF pages.
|
float |
getScale()
Gets the scale of the PDF output relatively to the original on-screen size of the spreadsheet.
|
void |
setEnableGridLines(boolean value)
Sets a value indicating whether to export the grid lines.
|
void |
setMarginBottom(float value)
Sets the bottom margin for the PDF pages, in inches.
|
void |
setMarginLeft(float value)
Sets the left margin for the PDF pages, in inches.
|
void |
setMarginRight(float value)
Sets the right margin for the PDF pages, in inches.
|
void |
setMarginTop(float value)
Sets the top margin for the PDF pages, in inches.
|
void |
setMaxPages(int value)
Sets the maximum number of pages to export, or 0, to export all pages.
|
void |
setPageOrientation(com.mindfusion.pdf.PageOrientation value)
Sets the orientation of the exported pages.
|
void |
setPageSize(com.mindfusion.pdf.PageSizesEnum value)
Sets the size of the PDF pages.
|
void |
setScale(float value)
Sets the scale of the PDF output relatively to the original on-screen size of the spreadsheet.
|
public PdfExporter()
PdfExporter class.public void export(Worksheet worksheet, java.lang.String filePath)
worksheet - The worksheet to export.filePath - The name of the PDF file.public float getMarginLeft()
public void setMarginLeft(float value)
public float getMarginTop()
public void setMarginTop(float value)
public float getMarginRight()
public void setMarginRight(float value)
public float getMarginBottom()
public void setMarginBottom(float value)
public float getScale()
public void setScale(float value)
public boolean getEnableGridLines()
public void setEnableGridLines(boolean value)
public int getMaxPages()
public void setMaxPages(int value)
public com.mindfusion.pdf.PageOrientation getPageOrientation()
public void setPageOrientation(com.mindfusion.pdf.PageOrientation value)
public com.mindfusion.pdf.PageSizesEnum getPageSize()
public void setPageSize(com.mindfusion.pdf.PageSizesEnum value)