public class WorkbookRender
Constructor Summary |
---|
WorkbookRender(Workbook workbook, ImageOrPrintOptions options)
The construct of WorkbookRender |
Property Getters/Setters Summary | ||
---|---|---|
int | getPageCount() | |
Indicate the total page count of workbook
|
Method Summary | ||
---|---|---|
void | toImage(int pageIndex, java.io.OutputStream stream) | |
Render certain page to a stream.
|
||
void | toImage(int pageIndex, java.lang.String fileName) | |
Render certain page to a file.
|
||
void | toImage(java.io.OutputStream stream) | |
Render whole workbook as Tiff Image to stream.
|
||
void | toImage(java.lang.String filename) | |
Render whole workbook as Tiff Image to a file.
|
||
void | toPrinter(java.lang.String PrinterName) | |
Render workbook to Printer
|
||
void | toPrinter(java.lang.String PrinterName, java.lang.String DocumentName) | |
Render workbook to Printer
|
public WorkbookRender(Workbook workbook, ImageOrPrintOptions options) throws java.lang.Exception
workbook
- Indicate which workbook to be rendered.options
- ImageOrPrintOptions contains some property of output imagepublic int getPageCount()
public void toImage(java.io.OutputStream stream) throws java.lang.Exception
stream
- the stream of the output imagepublic void toImage(java.lang.String filename) throws java.lang.Exception
filename
- the filename of the output imagepublic void toImage(int pageIndex, java.lang.String fileName) throws java.lang.Exception
pageIndex
- indicate which page is to be convertedfileName
- filename of the output imagepublic void toImage(int pageIndex, java.io.OutputStream stream) throws java.lang.Exception
pageIndex
- indicate which page is to be convertedstream
- the stream of the output imagepublic void toPrinter(java.lang.String PrinterName) throws java.lang.Exception
PrinterName
- the name of the printer , for example: "Microsoft Office Document Image Writer"public void toPrinter(java.lang.String PrinterName, java.lang.String DocumentName) throws java.lang.Exception
PrinterName
- the name of the printer , for example: "Microsoft Office Document Image Writer"DocumentName
- set the print job name