PresentationContent class

PresentationContent class

Represents a PowerPoint document where a watermark can be placed.

Learn more:

The PresentationContent type exposes the following members:

Methods

Method Description
decrypt Decrypts the document.
encrypt Encrypts the document.
encrypt_file
encrypt_string
dispose Disposes the current instance. (inherited from Content)
find_images Finds images according to the specified search criteria. The search is conducted in the objects specified in Watermarker.SearchableObjects. (inherited from ContentPart)
find_images_image_search_criteria (inherited from ContentPart)
search Finds possible watermarks according to the specified search criteria. The search is performed on the objects listed in Watermarker.SearchableObjects. (inherited from ContentPart)
search_search_criteria (inherited from ContentPart)

Properties

Property Description
layout_slides The collection of all layout slides of this PresentationContent.
master_handout_slide The master handout slide of this PresentationContent.
master_notes_slide The master slide for all notes slides of this PresentationContent.
master_slides The collection of all master slides of this PresentationContent.
notes_slide_height The height of a notes slide in points.
notes_slide_width The width of a notes slide in points.
slide_height The height of a slide in points.
slide_width The width of a slide in points.
slides The collection of all slides of this PresentationContent.

Example

from groupdocs.watermark import Watermarker
from groupdocs.watermark.options.presentation import PresentationLoadOptions

load_options = PresentationLoadOptions()
with Watermarker(r"D:\input.ppt", load_options) as watermarker:
    # Use the add method to add a watermark to a particular slide or all slides.
    watermarker.save(r"D:\output.ppt")

See Also