Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleJava
languagejava
String inputFileName = "d:\\input.pptx";
 
final SlidesDocument document = Document.load(SlidesDocument.class, inputFileName);
 
String watermarkText = "Company name";
TextSearchCriteria criterion = new TextSearchCriteria(watermarkText);
 
// Enabling skipping of unreadable characters
criterion.setSkipUnreadableCharacters(true);
 
PossibleWatermarkCollection result = document.findWatermarks(criterion);
 
document.close();

Protection of text watermark using unreadable characters for Slides document

Description

This feature allows strengthening protection of text watermark in case of modifying with Find And Replace dialog.

...

Code Block
titleJava
languagejava
String inputFileName = "d:\\input.pptx";
String outputFileName = "d:\\output.pptx";
 
final SlidesDocument document = Document.load(SlidesDocument.class, inputFileName);
 
TextWatermark watermark = new TextWatermark("Watermark text", new Font("Arial", 19));
 
SlidesShapeSettings settings = new SlidesShapeSettings();
settings.setLocked(true);
settings.setProtectWithUnreadableCharacters(true);
 
document.addWatermark(watermark, settings);
 
document.save(outputFileName);
 
document.close();

Added SmartArt and CustomXml drawing types for Spreadsheets 

Description

This enhancement adds two new supported drawing types to CellsMsoDrawingType enum: SmartArt and CustomXml.

...