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 |
Constructor Detail |
---|
function WorkbookRender(workbook, options)
workbook: Workbook
- Indicate which workbook to be rendered.options: ImageOrPrintOptions
- ImageOrPrintOptions contains some property of output imageProperty Getters/Setters Detail |
---|
getPageCount : Number | |
function getPageCount() |
Method Detail |
---|
toImage | |
function toImage(filename) |
filename: String
- the filename of the output imagetoImage | |
function toImage(pageIndex, fileName) |
pageIndex: Number
- indicate which page is to be convertedfileName: String
- filename of the output imagetoImage | |
function toImage(pageIndex, stream) |
pageIndex: Number
- indicate which page is to be convertedstream: OutputStream
- the stream of the output imagetoPrinter | |
function toPrinter(PrinterName) |
PrinterName: String
- the name of the printer , for example: "Microsoft Office Document Image Writer"toPrinter | |
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