Constructor Summary |
---|
WorkbookRender(workbook, options)
The construct of WorkbookRender |
Property Getters/Setters Summary | ||
---|---|---|
function | getPageCount() | |
Gets the total page count of workbook.
|
Method Summary | ||
---|---|---|
function | getPageSizeInch(pageIndex) | |
Get page size in inch of output image.
|
||
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, jobName) | |
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 getPageSizeInch(pageIndex)
pageIndex: Number
- The page index is based on zero.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, jobName)
printerName: String
- the name of the printer , for example: "Microsoft Office Document Image Writer"jobName: String
- set the print job name