Content
Contents
 [
        
            Hide
        ]
    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.
Constructors
| Constructor | Description | 
|---|---|
| Content(StreamContainer stream, IStrategyManager strategyManager, LoadOptions loadOptions, WatermarkerSettings watermarkerSettings) | 
Methods
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 | 
getWatermarkerSettings()
public final WatermarkerSettings getWatermarkerSettings()
Returns: WatermarkerSettings
getDocumentInfo()
public abstract IDocumentInfo getDocumentInfo()
Returns: IDocumentInfo
getFileType()
public abstract FileType getFileType()
Returns: FileType
getSearchableObjects()
public final SearchableObjects getSearchableObjects()
Returns: SearchableObjects
setSearchableObjects(SearchableObjects value)
public final void setSearchableObjects(SearchableObjects value)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| value | SearchableObjects | 
getStream()
public final StreamContainer getStream()
Returns: StreamContainer
save(String filePath)
public final void save(String filePath)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| filePath | java.lang.String | 
save(String filePath, SaveOptions saveOptions)
public final void save(String filePath, SaveOptions saveOptions)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| filePath | java.lang.String | |
| saveOptions | SaveOptions | 
save(OutputStream stream)
public final void save(OutputStream stream)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| stream | java.io.OutputStream | 
save(OutputStream stream, SaveOptions saveOptions)
public final void save(OutputStream stream, SaveOptions saveOptions)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| stream | java.io.OutputStream | |
| saveOptions | SaveOptions | 
dispose()
public final void dispose()
performSave(String filePath)
public abstract void performSave(String filePath)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| filePath | java.lang.String | 
performSave(OutputStream stream)
public abstract void performSave(OutputStream stream)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| stream | java.io.OutputStream | 
performSave(String filePath, SaveOptions saveOptions)
public abstract void performSave(String filePath, SaveOptions saveOptions)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| filePath | java.lang.String | |
| saveOptions | SaveOptions | 
performSave(OutputStream stream, SaveOptions saveOptions)
public abstract void performSave(OutputStream stream, SaveOptions saveOptions)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| stream | java.io.OutputStream | |
| saveOptions | SaveOptions | 
registerDisposableResource(System.IDisposable resource)
public final void registerDisposableResource(System.IDisposable resource)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| resource | com.aspose.ms.System.IDisposable | 
getInfo(String filePath)
public static InfoInternal getInfo(String filePath)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| filePath | java.lang.String | 
Returns: InfoInternal
getInfo(System.IO.Stream stream)
public static InfoInternal getInfo(System.IO.Stream stream)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| stream | com.aspose.ms.System.IO.Stream | 
Returns: InfoInternal
close()
public final void close()
Disposes the current instance.
add(Watermark watermark, WatermarkOptions options)
public abstract void add(Watermark watermark, WatermarkOptions options)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| watermark | Watermark | |
| options | WatermarkOptions | 
generatePreview(PreviewOptions previewOptions)
public abstract void generatePreview(PreviewOptions previewOptions)
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| previewOptions | PreviewOptions |