Logo

dev-resources.site

for different kinds of informations.

Protect presentation slides in Java

Published at
6/10/2019
Categories
protect
encrypt
ppt
Author
eiceblue
Categories
3 categories in total
protect
open
encrypt
open
ppt
open
Author
8 person written this
eiceblue
open
Protect presentation slides in Java

With the help of Free Spire.Presentation for Java, developers can protect the PowerPoint files with password or only allow the presentation slides to be read only, readers could not edit or change the contents on the slides. This article will show you how to protect the presentation slides in Java applications from the following three parts:

  • Encrypt the presentation slides
  • Set the presentation slides read only
  • Load an encrypted PowerPoint document and update its password

Encrypt PowerPoint file. Users have to enter the password to open and view the presentation slides.


Presentation presentation = new Presentation();
presentation.loadFromFile("Sample.pptx");

presentation.encrypt("e-iceblue");

presentation.saveToFile("output/Encrypted.pptx", FileFormat.PPTX_2010);

Set the presentation slides read only. Users can read the presentation slides without the password. If they want to edit the presentation, it is impossible. The presentation slides have been set as read only.

Presentation presentation = new Presentation();
presentation.loadFromFile("Sample.pptx");

presentation.protect("123456");

presentation.saveToFile("output/Readonly.pptx", FileFormat.PPTX_2010);

Modify the password of the protected PowerPoint document. Update the existing password.

Presentation presentation = new Presentation();

//load the encrypted document with password
presentation.loadFromFile("Encrypted.pptx", FileFormat.PPTX_2010,"e-iceblue");

//Remove the Encryption
presentation.removeEncryption();
//Set the new password to encrypt the document
presentation.encrypt("Newpass");

presentation.saveToFile("output/Modifypass.pptx", FileFormat.PPTX_2010);
encrypt Article's
25 articles in total
Favicon
Encrypt/Decrypt Data between Python 3 and JavaScript (AES algorithm)
Favicon
HideIPVPN: Unblock, Encrypt, & Explore Freely
Favicon
Encrypt Password Laravel
Favicon
Introduction to the Principles of JavaScript Encryption and JavaScript Obfuscation
Favicon
What is the secure way to store environment variables?
Favicon
Java 01 - Jasypt: Protegendo dados sensรญveis com criptografia.
Favicon
How to encrypt a text using Python (key and text) and decrypt that cipher in JavaScript using the same key.
Favicon
Differences Between HTTP and HTTPS?
Favicon
Managing and sharing secrets in a Git repository with Keybase
Favicon
How To Encrypt And Decrypt String In Laravel 9
Favicon
PGP - Create a Public/Private Key Pair(Part 2)
Favicon
PGP - Introduction Encryption and Decryption (Part 1)
Favicon
๐Ÿ”How to encrypt variables in NodeJS
Favicon
Java - How to Encrypt or Decrypt PDF Documents
Favicon
backup the .env files to git/gist/dropbox in old school way!
Favicon
Protect Python Source Code
Favicon
Python Encrypt Source Code Online
Favicon
Top 15 Modules 2022: Encrypt and Decrypt String Python
Favicon
Email Encryption: What it is, How Does It Work, and How to Encrypt an Email
Favicon
Add Https to Azure Web App with Let's Encrypt
Favicon
Ansible Vault Quick Start
Favicon
Nginx configures free SSL certificate in Windows environment (Letโ€™s Encrypt)
Favicon
Encrypt/ Decrypt PDF Files in Java Application
Favicon
How to use GnuPG for encrypting files on MacOS
Favicon
Protect presentation slides in Java

Featured ones: