@OpenApiAll
public interface IDocumentCreator
Modifier and Type | Method and Description |
---|---|
void |
convert(java.io.Reader reader,
java.io.Writer writer)
Convert the document content from reader into other document.
|
void |
setDocumentPage(DocumentPage page)
set document page property.
|
void |
setFormatter(DefaultFormatter formatter)
Set formatter.
|
void |
setPaperHeight(float height)
set height of paper.
|
void |
setPaperWidth(float width)
set width of paper.
|
void |
setProperties(java.util.Properties properties)
Set properties.
|
void |
setStyledDocument(StyledDocument document)
Associates the creator with a document.
|
void convert(java.io.Reader reader, java.io.Writer writer) throws java.io.IOException
reader
- the reader containing source.writer
- the writer containing converted document.java.io.IOException
- If any IO errors occur.void setStyledDocument(StyledDocument document)
document
- StyledDocument
void setPaperWidth(float width)
width
- paper width.void setPaperHeight(float height)
height
- paper width.void setFormatter(DefaultFormatter formatter)
formatter
- formattervoid setProperties(java.util.Properties properties)
properties
- propertiesvoid setDocumentPage(DocumentPage page)
page
- page property.Copyright © 2010 - No Magic Asia