Package com.nomagic.magicreport.format
Interface IDocumentCreator
- All Known Implementing Classes:
AbstractDocumentCreator,DocBookCreator,DOCXCreator,ODFCreator,PPTXCreator,RTFCreator,XLSXCreator
@OpenApiAll
public interface IDocumentCreator
A document creator interface. This interface provides methods to create a document.
- Since:
- May 21, 2009
-
Method Summary
Modifier and TypeMethodDescriptionvoidConvert the document content from reader into other document.voidsetDocumentPage(com.nomagic.magicreport.DocumentPage page) set document page property.voidsetFormatter(DefaultFormatter formatter) Set formatter.voidsetPaperHeight(float height) set height of paper.voidsetPaperWidth(float width) set width of paper.voidsetProperties(Properties properties) Set properties.voidsetStyledDocument(StyledDocument document) Associates the creator with a document.
-
Method Details
-
convert
Convert the document content from reader into other document.- Parameters:
reader- the reader containing source.writer- the writer containing converted document.- Throws:
IOException- If any IO errors occur.
-
setStyledDocument
Associates the creator with a document.- Parameters:
document-StyledDocument
-
setPaperWidth
void setPaperWidth(float width) set width of paper.- Parameters:
width- paper width.
-
setPaperHeight
void setPaperHeight(float height) set height of paper.- Parameters:
height- paper width.
-
setFormatter
Set formatter.- Parameters:
formatter- formatter
-
setProperties
Set properties.- Parameters:
properties- properties
-
setDocumentPage
void setDocumentPage(com.nomagic.magicreport.DocumentPage page) set document page property.- Parameters:
page- page property.
-