Hi,
Please check the attached file which contains the orginal input file.
(1)If you convert it to pdf, you will see many text is selected and highlighted in different color.
(2)In the run time temp directory, could see couple “tmp” files are generated, not sure if HighlightColor.zip (2.7 MB)
this is expected.
Code as below,
Thanks for help!
Ruhong
Presentation pres = new Presentation("C:/input.potx");
try {
// Instantiate the PdfOptions class
PdfOptions pdfOptions = new PdfOptions();
// Specify that the generated document should include hidden slides
pdfOptions.setShowHiddenSlides(true);
// Save the presentation to PDF with specified options
pres.save("c:/output.pdf", pdfOptions);
} catch (Exception e) {
throw new Exception(e);
}