Interface IAsposeConnector
-
- All Known Implementing Classes:
AsposeWordConnector
public interface IAsposeConnector
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description EvaluationMode
getEvaluationMode()
void
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.UseloadDocument
,processDocument
,saveDocument
.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 Detail
-
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 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:
initAspose(boolean)
-
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.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
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, seeSaveFormat
.- 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)
-
-