public class SpreadsheetContent extends Content
Learn more:
The following example demonstrates how to load and save Excel content of any supported type.
SpreadsheetLoadOptions loadOptions = new SpreadsheetLoadOptions(); Watermarker watermarker = new Watermarker("D:\\input.xls", loadOptions); // Use add method to add watermark to a particular or all worksheets. // Save changes. watermarker.save("D:\\output.xls"); watermarker.close();
Modifier and Type | Method and Description |
---|---|
void |
decrypt()
Decrypts the document.
|
protected void |
dispose(boolean disposing)
Releases all resources used by the
SpreadsheetContent |
void |
encrypt(String password)
Encrypts the content.
|
SpreadsheetWorksheetCollection |
getWorksheets()
Gets the collection of all worksheets of this
. |
findImages, findImages, search, search
public final SpreadsheetWorksheetCollection getWorksheets()
SpreadsheetContent
.SpreadsheetContent
.public final void encrypt(String password)
Encrypts the content.
password
- The password that will be required to open the document.public final void decrypt()
Decrypts the document.