Last active
June 2, 2023 04:23
Revisions
-
aspose-com-kb revised this gist
Jun 2, 2023 . No changes.There are no files selected for viewing
-
aspose-com-kb revised this gist
May 27, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ public static void ApplyReadOnly() { String path = @"/Users/KnowledgeBase/TestData/"; // Setting the license for the product to make the presentation readonly License SlidesLicense = new License(); SlidesLicense.SetLicense(path + "Conholdate.Total.Product.Family.lic"); -
aspose-com-kb created this gist
May 27, 2023 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ using System; using Aspose.Slides; using Aspose.Slides.Export; namespace TestSlides { public class ReadonlyPresentation { public static void ApplyReadOnly() { String path = @"/Users/KnowledgeBase/TestData/"; // Setting the linence for the product to make the presentation readonly License SlidesLicense = new License(); SlidesLicense.SetLicense(path + "Conholdate.Total.Product.Family.lic"); // Load the source presentation file to make it readonly using (Presentation presSecurity = new Presentation(path + "Source.pptx")) { // Set the presentation access to readonly presSecurity.ProtectionManager.ReadOnlyRecommended = true; // Save the readonly presentation on the disk presSecurity.Save(path + "SecurePres.pptx", SaveFormat.Pptx); } } } }