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