public interface WatermarksInterface
Modifier and Type | Method and Description |
---|---|
ContentHandlerResult |
deleteWatermarkContent(ContentHandlerInput input)
Delete the watermark content for the specified document key, if it exists.
|
ContentHandlerResult |
getWatermarkContent(ContentHandlerInput input)
Returns the watermark file for the specified document key in the form of a byte array.
|
ContentHandlerResult getWatermarkContent(ContentHandlerInput input) throws VirtualViewerAPIException
input
- ContentHandlerInput containing the following values:
Key | Type | Description |
---|---|---|
KEY_DOCUMENT_ID | java.lang.String | The key representing the document. Can be retrieved with . |
KEY_CLIENT_INSTANCE_ID | java.lang.String | Custom configurable value used to pass data from client to content handler. If not set then will be
the session ID. Can be retrieved with
|
KEY_HTTP_SERVLET_REQUEST | javax.servlet.http.HttpServletRequest | Request that called this method. Can be retrieved with
|
Key | Type | Description |
---|---|---|
KEY_WATERMARK_CONTENT | byte[] | Contents of the watermark file for this document, or null if no watermarks have been saved. |
VirtualViewerAPIException
- if content handler throws exceptionContentHandlerResult deleteWatermarkContent(ContentHandlerInput input) throws VirtualViewerAPIException
input
- ContentHandlerInput containing the following values:
Key | Type | Description |
---|---|---|
KEY_DOCUMENT_ID | java.lang.String | The key representing the document. Can be retrieved with . |
KEY_CLIENT_INSTANCE_ID | java.lang.String | Custom configurable value used to pass data from client to content handler. If not set then will be
the session ID. Can be retrieved with
|
KEY_HTTP_SERVLET_REQUEST | javax.servlet.http.HttpServletRequest | Request that called this method. Can be retrieved with
|
VirtualViewerAPIException
- if content handler throws exceptionCopyright © 2019 Snowbound Software Corporation. All rights reserved.