public final class DiagramPageWatermarkOptions extends DiagramWatermarkOptions
Learn more:
The following example demonstrates how to add a protected watermark to the first page of a Visio document.
DiagramLoadOptions loadOptions = new DiagramLoadOptions(); Watermarker watermarker = new Watermarker("D:\\test.vsdx", loadOptions); TextWatermark watermark = new TextWatermark("watermark test", new Font("Arial", 42)); DiagramPageWatermarkOptions options = new DiagramPageWatermarkOptions(); options.setLocked(true); options.setPageIndex(0); watermarker.add(watermark, options); watermarker.save("D:\\watermarked_test.vsdx"); watermarker.close();
Constructor and Description |
---|
DiagramPageWatermarkOptions()
Initializes a new instance of the
class. |
Modifier and Type | Method and Description |
---|---|
int |
getPageIndex()
Gets the page index to add watermark to.
|
void |
setPageIndex(int value)
Sets the page index to add watermark to.
|
isLocked, setLocked
public DiagramPageWatermarkOptions()
DiagramPageWatermarkOptions
class.