Interface IAsposeConnector

All Known Implementing Classes:
AsposeWordConnector

public interface IAsposeConnector
  • Method Details

    • getEvaluationMode

      EvaluationMode getEvaluationMode()
    • initAspose

      void initAspose(boolean useBackendParameter) throws Exception
      Diese Methode dient dazu, das Aspose-Framework zu konfigurieren. Hierbei wird die Aspose-Lizenz gesetzt sowie die Verwendung von Backendparametern, anstelle von Elementnamen
      Parameters:
      useBackendParameter - - Bool'scher Wert, der angibt ob Backendparameter verwendet werden
      Throws:
      Exception - - Wenn die Lizenz ungültig ist oder nicht gefunden werden kann
    • initAspose

      void initAspose(boolean useBackendParameter, boolean useFullFieldName) throws Exception
      Parameters:
      useBackendParameter - - Bool'scher Wert, der angibt ob Backendparameter verwendet werden
      useFullFieldName - - Bool'scher Wert, der angibt ob voll qualifizierte Name(z.B. elternelement.feld) als Original-Name verwendet werden soll oder nur der Feldname. Standardmäßig auf false gestellt.
      Throws:
      Exception - - Wenn die Lizenz ungültig ist oder nicht gefunden werden kann
      See Also:
    • loadDocument

      void loadDocument(InputStream srcStream) throws Exception
      Loads a Word document from the given stream .
      Parameters:
      srcStream - Stream with the Word document.
      Throws:
      Exception - When the stream could not be read.
    • loadDocument

      void loadDocument(String path) throws Exception
      Loads a Word document from the file system.
      Parameters:
      path - Path to the Word file.
      Throws:
      Exception - When the file could not be read.
    • processDocument

      void processDocument(IDataAdapter fda, IReplacer replacer) throws Exception
      Processes the Word document, replacing all fields and functions.
      Parameters:
      fda - Form data adapter with the data to use.
      replacer - Optional replacer for replacing placeholders.
      Throws:
      Exception - When the document could not be processed.
    • processDocument

      @Deprecated default void processDocument(InputStream srcStream, String outputFilePath, IDataAdapter fda) throws Exception
      Deprecated.
      Use loadDocument, processDocument, saveDocument.
      Throws:
      Exception
    • processDocument

      @Deprecated default void processDocument(String srcFile, String outputFilePath, IDataAdapter fda) throws Exception
      Deprecated.
      Throws:
      Exception
    • processDocument

      @Deprecated default void processDocument(String srcFile, String outputFilePath, IDataAdapter fda, IReplacer replacer) throws Exception
      Deprecated.
      Use loadDocument, processDocument, saveDocument.
      Throws:
      Exception
    • saveDocument

      void saveDocument(OutputStream output, int saveFormat) throws Exception
      Saves the current document to the given stream.
      Parameters:
      output - Output stream to which to write the document.
      saveFormat - Format of the document, see SaveFormat.
      Throws:
      Exception - When the file could not be written.
    • saveDocument

      void saveDocument(String outputFile) throws Exception
      Saves the current document to the file system.
      Parameters:
      outputFile - Path to the file to which to write the document.
      Throws:
      Exception - When the file could not be written.
    • setEvaluationMode

      void setEvaluationMode(EvaluationMode evaluationMode)