Free Support Forum - aspose.com

Texted is selected in wrong way

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);
            }

@ruhongcai,

I have worked with sample code shared by you using Aspose.Slides for Java 17.12 and have been able to observe issue. A ticket with ID SLIDESJAVA-36744 has been logged in our issue tracking system to further investigate and resolve the issue.This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.

The issues you have found earlier (filed as SLIDESJAVA-36744) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by mudassir.fayyaz