PresentationContent class
Leave feedback
On this page
Represents a PowerPoint document where a watermark can be placed.
Learn more:
- https://docs.groupdocs.com/display/watermarknet/Add+watermarks+to+presentation+documents
- https://docs.groupdocs.com/display/watermarknet/Working+with+slide+backgrounds
The PresentationContent type exposes the following members:
| 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. (inherited from ContentPart) |
| find_images_image_search_criteria | (inherited from ContentPart) |
| search | Finds possible watermarks according to the specified search criteria. (inherited from ContentPart) |
| search_search_criteria | (inherited from ContentPart) |
| 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. |
import groupdocs.watermark as gw
import groupdocs.watermark.contents.presentation as gwc_ppt
load_options = gw.PresentationLoadOptions()
with gw.Watermarker("presentation.pptx", load_options) as watermarker:
content = watermarker.get_content(gwc_ppt.PresentationContent)
print(content.slide_width)
print(content.slide_height)
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.