public final class WordProcessingWatermarkSectionOptions extends WordProcessingWatermarkBaseOptions
Learn more:
The following example demonstrates how to add a watermark to a particular section of a Word document.
WordProcessingLoadOptions loadOptions = new WordProcessingLoadOptions(); Watermarker watermarker = new Watermarker("D:\\test.doc", loadOptions); TextWatermark watermark = new TextWatermark("Test", new Font("Arial", 14)); WordProcessingWatermarkSectionOptions options = new WordProcessingWatermarkSectionOptions(); options.setSectionIndex(0); watermarker.save("D:\\watermarked_test.doc"); watermarker.close();
Constructor and Description |
---|
WordProcessingWatermarkSectionOptions()
Initializes a new instance of the
class. |
Modifier and Type | Method and Description |
---|---|
int |
getSectionIndex()
Gets the index of a section to add the watermark to.
|
void |
setSectionIndex(int value)
Sets the index of a section to add the watermark to.
|
getAlternativeText, getEffects, getLockType, getName, getPassword, isLocked, setAlternativeText, setEffects, setLocked, setLockType, setName, setPassword
public WordProcessingWatermarkSectionOptions()
WordProcessingWatermarkSectionOptions
class.public final int getSectionIndex()
Gets the index of a section to add the watermark to.
public final void setSectionIndex(int value)
Sets the index of a section to add the watermark to.
value
- The index of a section to add the watermark to.