DiagramPageWatermarkOptions

Inheritance: java.lang.Object, com.groupdocs.watermark.options.WatermarkOptions, com.groupdocs.watermark.options.DiagramWatermarkOptions

public final class DiagramPageWatermarkOptions extends DiagramWatermarkOptions

Represents watermark adding options when adding shape watermark to a particular page of a Visio document.

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();

Constructors

Constructor Description
DiagramPageWatermarkOptions() Initializes a new instance of the [DiagramPageWatermarkOptions](../../com.groupdocs.watermark.options/diagrampagewatermarkoptions) class.

Methods

Method Description
getPageIndex() Gets the page index to add watermark to.
setPageIndex(int value) Sets the page index to add watermark to.

DiagramPageWatermarkOptions()

public DiagramPageWatermarkOptions()

Initializes a new instance of the [DiagramPageWatermarkOptions](../../com.groupdocs.watermark.options/diagrampagewatermarkoptions) class.

getPageIndex()

public final int getPageIndex()

Gets the page index to add watermark to.

Returns: int - The page index to add watermark to.

setPageIndex(int value)

public final void setPageIndex(int value)

Sets the page index to add watermark to.

Parameters:

Parameter Type Description
value int The page index to add watermark to.