Hi,
Please see problem in the attached files as “input.ppt” and “output.pdf”,
sample code is as followings, Thanks!
Presentation pres = new Presentation(“C:\temp\input.pptx”);
try {
// Instantiate the PdfOptions class
com.aspose.slides.PdfOptions pdfOptionsSlider = new com.aspose.slides.PdfOptions();
// Specify that the generated document should include hidden slides
pdfOptionsSlider.setShowHiddenSlides(true);
// Save the presentation to PDF with specified options
String path ="C:\\temp\\output.pdf";
pres.save(path, com.aspose.slides.SaveFormat.Pdf,pdfOptionsSlider);
} catch (Exception e) {
System.out.println("Error...." + e.getMessage());
}
RuhongFont-changed.zip (255.3 KB)