Interface IAsposeConnector
- All Known Implementing Classes:
AsposeWordConnector
public interface IAsposeConnector
-
Method Summary
Modifier and TypeMethodDescriptionvoidinitAspose(boolean useBackendParameter) Diese Methode dient dazu, das Aspose-Framework zu konfigurieren.voidinitAspose(boolean useBackendParameter, boolean useFullFieldName) voidloadDocument(InputStream srcStream) Loads a Word document from the given stream .voidloadDocument(String path) Loads a Word document from the file system.voidprocessDocument(IDataAdapter fda, IReplacer replacer) Processes the Word document, replacing all fields and functions.default voidprocessDocument(InputStream srcStream, String outputFilePath, IDataAdapter fda) Deprecated.default voidprocessDocument(String srcFile, String outputFilePath, IDataAdapter fda) Deprecated.default voidprocessDocument(String srcFile, String outputFilePath, IDataAdapter fda, IReplacer replacer) Deprecated.UseloadDocument,processDocument,saveDocument.voidsaveDocument(OutputStream output, int saveFormat) Saves the current document to the given stream.voidsaveDocument(String outputFile) Saves the current document to the file system.voidsetEvaluationMode(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.