Interface IAsposeConnector
- All Known Implementing Classes:
AsposeWordConnector
public interface IAsposeConnector
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initAspose
(boolean useBackendParameter) Diese Methode dient dazu, das Aspose-Framework zu konfigurieren.void
initAspose
(boolean useBackendParameter, boolean useFullFieldName) void
loadDocument
(InputStream srcStream) Loads a Word document from the given stream .void
loadDocument
(String path) Loads a Word document from the file system.void
processDocument
(IDataAdapter fda, IReplacer replacer) Processes the Word document, replacing all fields and functions.default void
processDocument
(InputStream srcStream, String outputFilePath, IDataAdapter fda) Deprecated.default void
processDocument
(String srcFile, String outputFilePath, IDataAdapter fda) Deprecated.default void
processDocument
(String srcFile, String outputFilePath, IDataAdapter fda, IReplacer replacer) Deprecated.UseloadDocument
,processDocument
,saveDocument
.void
saveDocument
(OutputStream output, int saveFormat) Saves the current document to the given stream.void
saveDocument
(String outputFile) Saves the current document to the file system.void
setEvaluationMode
(EvaluationMode evaluationMode)
-
Method Details
-
getEvaluationMode
EvaluationMode getEvaluationMode() -
initAspose
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
- Parameters:
useBackendParameter
- - Bool'scher Wert, der angibt ob Backendparameter verwendet werdenuseFullFieldName
- - 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
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
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
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.UseloadDocument
,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.UseloadDocument
,processDocument
,saveDocument
.- Throws:
Exception
-
saveDocument
Saves the current document to the given stream.- Parameters:
output
- Output stream to which to write the document.saveFormat
- Format of the document, seeSaveFormat
.- Throws:
Exception
- When the file could not be written.
-
saveDocument
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
-
loadDocument
,processDocument
,saveDocument
.