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 characters
//Instantiate a Presentation object that represents a presentation file | |
Presentation pres = new Presentation("demo.pptx"); | |
//Instantiate the PdfOptions class | |
PdfOptions opts = new PdfOptions(); | |
//Setting PDF password | |
opts.setPassword ( "password"); | |
//Save the presentation to password protected PDF |
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 characters
//Instantiate a Presentation object that represents a presentation file | |
Presentation pres = new Presentation("demo.pptx"); | |
//Instantiate the PdfOptions class | |
PdfOptions opts = new PdfOptions(); | |
//Set Jpeg Quality | |
opts.setJpegQuality ((byte) 90); | |
//Define behavior for metafiles |
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 characters
//Instantiate a Presentation object that represents a presentation file | |
Presentation pres = new Presentation("demo.pptx"); | |
//Save the presentation to PDF with default options | |
pres.save("demoDefault.pdf", SaveFormat.Pdf); |
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 characters
//Instantiate a Presentation object that represents a PPTX file | |
Presentation pres = new Presentation("Aspose.ppt"); | |
//Saving the PPTX presentation to PPTX format | |
pres.save("Aspose.pptx",SaveFormat.Pptx); |
NewerOlder