Content
Leave feedback
On this page
Inheritance: java.lang.Object, com.groupdocs.watermark.contents.ContentPart
All Implemented Interfaces: java.io.Closeable
public abstract class Content extends ContentPart implements Closeable
Represents a content where a watermark can be placed.
| Constructor | Description |
|---|---|
| Content(StreamContainer stream, IStrategyManager strategyManager, LoadOptions loadOptions, WatermarkerSettings watermarkerSettings) |
Content(StreamContainer stream, IStrategyManager strategyManager, LoadOptions loadOptions, WatermarkerSettings watermarkerSettings)
public Content(StreamContainer stream, IStrategyManager strategyManager, LoadOptions loadOptions, WatermarkerSettings watermarkerSettings)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | StreamContainer | |
| strategyManager | IStrategyManager | |
| loadOptions | LoadOptions | |
| watermarkerSettings | WatermarkerSettings |
public final WatermarkerSettings getWatermarkerSettings()
Returns: WatermarkerSettings
public abstract IDocumentInfo getDocumentInfo()
Returns: IDocumentInfo
public abstract FileType getFileType()
Returns: FileType
public final SearchableObjects getSearchableObjects()
Returns: SearchableObjects
public final void setSearchableObjects(SearchableObjects value)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | SearchableObjects |
public final StreamContainer getStream()
Returns: StreamContainer
public final void save(String filePath)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| filePath | java.lang.String |
public final void save(String filePath, SaveOptions saveOptions)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| filePath | java.lang.String | |
| saveOptions | SaveOptions |
public final void save(OutputStream stream)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | java.io.OutputStream |
public final void save(OutputStream stream, SaveOptions saveOptions)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | java.io.OutputStream | |
| saveOptions | SaveOptions |
public final void dispose()
public abstract void performSave(String filePath)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| filePath | java.lang.String |
public abstract void performSave(OutputStream stream)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | java.io.OutputStream |
public abstract void performSave(String filePath, SaveOptions saveOptions)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| filePath | java.lang.String | |
| saveOptions | SaveOptions |
public abstract void performSave(OutputStream stream, SaveOptions saveOptions)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | java.io.OutputStream | |
| saveOptions | SaveOptions |
public final void registerDisposableResource(System.IDisposable resource)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| resource | com.aspose.ms.System.IDisposable |
public static InfoInternal getInfo(String filePath)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| filePath | java.lang.String |
Returns: InfoInternal
public static InfoInternal getInfo(System.IO.Stream stream)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| stream | com.aspose.ms.System.IO.Stream |
Returns: InfoInternal
public final void close()
Disposes the current instance.
public abstract void add(Watermark watermark, WatermarkOptions options)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| watermark | Watermark | |
| options | WatermarkOptions |
public abstract void generatePreview(PreviewOptions previewOptions)
Parameters:
| Parameter | Type | Description |
|---|---|---|
| previewOptions | PreviewOptions |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.