public interface IWatermark
| Modifier and Type | Field and Description |
|---|---|
static int |
TYPE_IMAGES
The watermark type used when creating images from a PDF document.
|
static int |
TYPE_PRINT
The watermark type used when printing a PDF document.
|
static int |
TYPE_VIEWER
The watermark type used when viewing a PDF document.
|
| Modifier and Type | Method and Description |
|---|---|
void |
drawWatermark(Graphics2D g,
int type,
int pageIndex,
int pageWidth,
int pageHeight)
This method is called by the Java PDF Library to draw a watermark on a
PDF document.
|
static final int TYPE_IMAGES
static final int TYPE_PRINT
static final int TYPE_VIEWER
void drawWatermark(Graphics2D g, int type, int pageIndex, int pageWidth, int pageHeight)
g - the Graphics2D object used to draw the watermarktype - a type defined in this class, either TYPE_IMAGES,
TYPE_PRINT, or TYPE_VIEWERpageIndex - the current page index being renderedpageWidth - the page width being renderedpageHeight - the page height being rendered