IDocumentProcessorPlugin
public interface IDocumentProcessorPlugin
Defines an interface for external document processor plugin.
Methods
append(InputStream inputStream, LoadOptions loadOptions)
public abstract void append(InputStream inputStream, LoadOptions loadOptions)
Append the document loading it with the specified load options.
Parameters:
Parameter | Type | Description |
---|---|---|
inputStream | java.io.InputStream | The input stream. |
loadOptions | LoadOptions | The document load options. Can be null , in this case the document is loaded with default load options. |
load(InputStream inputStream, LoadOptions loadOptions)
public abstract void load(InputStream inputStream, LoadOptions loadOptions)
Load the document using the specified load options.
Parameters:
Parameter | Type | Description |
---|---|---|
inputStream | java.io.InputStream | The input stream. |
loadOptions | LoadOptions | The document load options. Can be null , in this case the document is loaded with default load options. |
save(OutputStream outputStream, SaveOptions saveOptions)
public abstract void save(OutputStream outputStream, SaveOptions saveOptions)
Parameters:
Parameter | Type | Description |
---|---|---|
outputStream | java.io.OutputStream | |
saveOptions | SaveOptions |
setImageWatermark(InputStream imageWatermark, ImageWatermarkOptions imageWatermarkOptions)
public abstract void setImageWatermark(InputStream imageWatermark, ImageWatermarkOptions imageWatermarkOptions)
Adds image watermark on each page of the document loaded by load(java.io.InputStream, com.aspose.words.LoadOptions) method.
Parameters:
Parameter | Type | Description |
---|---|---|
imageWatermark | java.io.InputStream | Image used as a watermark. |
imageWatermarkOptions | ImageWatermarkOptions | Image watermark options. |
setTextWatermark(String textWatermark, TextWatermarkOptions textWatermarkOptions)
public abstract void setTextWatermark(String textWatermark, TextWatermarkOptions textWatermarkOptions)
Adds text watermark on each page of the document loaded by load(java.io.InputStream, com.aspose.words.LoadOptions) method.
Parameters:
Parameter | Type | Description |
---|---|---|
textWatermark | java.lang.String | Text used as a watermark. |
textWatermarkOptions | TextWatermarkOptions | Text watermark options. |
toDocument()
public abstract Document toDocument()
Parses the document loaded by load(java.io.InputStream, com.aspose.words.LoadOptions) method into Document object.
Returns: Document
toPages(FixedPageSaveOptions saveOptions)
public abstract OutputStream[] toPages(FixedPageSaveOptions saveOptions)
Saves each page of the document loaded by load(java.io.InputStream, com.aspose.words.LoadOptions) method using the specified fixed page save options.
Parameters:
Parameter | Type | Description |
---|---|---|
saveOptions | FixedPageSaveOptions |
Returns: java.io.OutputStream[]