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 Details

    • convert

      void convert(Reader reader, Writer writer) throws IOException
      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

      void setStyledDocument(StyledDocument document)
      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

      void setFormatter(DefaultFormatter formatter)
      Set formatter.
      Parameters:
      formatter - formatter
    • setProperties

      void setProperties(Properties properties)
      Set properties.
      Parameters:
      properties - properties
    • setDocumentPage

      void setDocumentPage(com.nomagic.magicreport.DocumentPage page)
      set document page property.
      Parameters:
      page - page property.