org.zkoss.zss.model.impl.pdf
Class PdfExporter

java.lang.Object
  extended by org.zkoss.zss.model.impl.pdf.PdfExporter
All Implemented Interfaces:
java.io.Serializable, SExporter

public class PdfExporter
extends java.lang.Object
implements SExporter, java.io.Serializable

Implementation of Exporter interface that converts Excel data model org.zkoss.zss.model.Book into a PDF format written to a OutputStream

Author:
ashish, henri, kuro
See Also:
Serialized Form

Constructor Summary
PdfExporter()
           
 
Method Summary
 void enableGridLines(boolean enable)
          Enables grid lines printing
 void enableHeadings(boolean enable)
          Enables row and column headings printing
 void export(SBook book, java.io.File file)
          Export a book
 void export(SBook workbook, java.io.OutputStream outputStream)
          Exports ZK Spreadsheet Book into another format written to a OutputStream.
 void export(SheetRegion sheetRegion, java.io.OutputStream outputStream)
          Exports selected area of ZK Spreadsheet active sheet represented by org.zkoss.zss.model.sys.XRange
 void export(SSheet worksheet, java.io.OutputStream outputStream)
          Exports ZK Spreadsheet SSheet into another format written to a
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdfExporter

public PdfExporter()
Method Detail

export

public void export(SBook book,
                   java.io.File file)
            throws java.io.IOException
Description copied from interface: SExporter
Export a book

Specified by:
export in interface SExporter
Parameters:
book - the book to export
Throws:
java.io.IOException

export

public void export(SBook workbook,
                   java.io.OutputStream outputStream)
            throws java.io.IOException
Exports ZK Spreadsheet Book into another format written to a OutputStream. Note that it exports entire workbook.

Specified by:
export in interface SExporter
Parameters:
workbook -
outputStream -
Throws:
java.io.IOException

export

public void export(SSheet worksheet,
                   java.io.OutputStream outputStream)
            throws java.io.IOException
Exports ZK Spreadsheet SSheet into another format written to a

Specified by:
export in interface SExporter
Parameters:
worksheet - sheet instance that contains selected area
outputStream - outoutStream to which exported contents to be written
Throws:
java.io.IOException

export

public void export(SheetRegion sheetRegion,
                   java.io.OutputStream outputStream)
            throws java.io.IOException
Exports selected area of ZK Spreadsheet active sheet represented by org.zkoss.zss.model.sys.XRange

Specified by:
export in interface SExporter
Parameters:
worksheet - sheet instance that contains selected area
area - area representing selected area to be exported
outputStream - outoutStream to which exported contents to be written
Throws:
java.io.IOException

enableGridLines

public void enableGridLines(boolean enable)
Enables grid lines printing

Parameters:
enable -

enableHeadings

public void enableHeadings(boolean enable)
Enables row and column headings printing

Parameters:
enable -


Copyright © 2005-2010 Potix Corporation. All Rights Reserved.