|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arctorus.documents.Document
public final class Document
Main class to create new documents.
Constructor Summary | |
---|---|
Document()
Creates new empty document. |
Method Summary | |
---|---|
Page |
createPage()
Create and return new page in the document. |
Page |
createPage(java.lang.String pageName)
Create and return new page in the document. |
BorderStyleManager |
getBorderStyleManager()
Gets manager of border styles defined for this document. |
CellStyleManager |
getCellStyleManager()
Gets manager of cell styles defined for this document. |
DocumentProperties |
getDocumentProperties()
Gets standard properties of a document. |
Page |
getFirstPage()
Get the first page of a document. |
java.util.List<Page> |
getPages()
Get read-only unmodifiable list of all pages in a document. |
PageSize |
getPageSize()
Get PageSize object which allows to read and change page properties. |
void |
save(ExportType exportType,
java.io.InputStream templateDocument,
java.io.OutputStream outputStream)
Save document to the provided output stream in specified file format using template presentation. |
void |
save(ExportType exportType,
java.io.OutputStream outputStream)
Save document to the provided output stream in specified file format. |
void |
save(ExportType exportType,
java.lang.String outputPath)
Save document to the provided output stream in specified file format. |
void |
save(ExportType exportType,
java.lang.String templatePath,
java.lang.String outputPath)
Save document to the provided output stream in specified file format using template presentation. |
void |
setLicense(java.io.InputStream licenseStream)
Read license from input stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Document()
Method Detail |
---|
public void setLicense(java.io.InputStream licenseStream) throws LicenseException, java.io.IOException
licenseStream
- stream to read license from.
LicenseException
java.io.IOException
public DocumentProperties getDocumentProperties()
public Page createPage()
public Page createPage(java.lang.String pageName)
public Page getFirstPage()
public java.util.List<Page> getPages()
public CellStyleManager getCellStyleManager()
public BorderStyleManager getBorderStyleManager()
public PageSize getPageSize()
public void save(ExportType exportType, java.lang.String outputPath) throws DocumentException, java.io.IOException
exportType
- document format.outputPath
- output file path.
DocumentException
java.io.IOException
public void save(ExportType exportType, java.io.OutputStream outputStream) throws DocumentException, java.io.IOException
exportType
- document format.outputStream
- output stream.
DocumentException
java.io.IOException
public void save(ExportType exportType, java.io.InputStream templateDocument, java.io.OutputStream outputStream) throws DocumentException, java.io.IOException
exportType
- document format.templateDocument
- input stream with template document.outputStream
- output stream.
DocumentException
java.io.IOException
public void save(ExportType exportType, java.lang.String templatePath, java.lang.String outputPath) throws DocumentException, java.io.IOException
exportType
- document format.templatePath
- input file path with template document.outputPath
- output file path.
DocumentException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |