The Space Interval Rendering Is Different after Converting PPT to PDF in Java

Multiple spaces were used in the PPT, and the width of the spaces was significantly different when converted to PDF

image.png (54.8 KB)
image.png (65.1 KB)

this is file:
EPPR_70126.zip (1.3 MB)

this is my code:

Presentation presentation = new Presentation("D://Program_Data//Aspose//EPPR_70126//EPPR_70126.pptx"); presentation.save("D://Program_Data//Aspose//EPPR_70126//EPPR_70126.pdf", SaveFormat.Pdf);

@xhaixia,

Thanks for the sample files.

I tested your scenario/case using your sample PowerPoint presentation. I used latest version of Aspose.Slides for Java v23.10 and it works fine. The output PDF is fine tuned and the space interval is same with PPTX file. Please find attached the output PDF for your reference.
EPPR_70126.pdf (96.7 KB)

I found you are using an older version of the API, so you have found this issue/behavior. We recommend you kindly try using latest version of the API and it will resolve your issue.

Let us know if you still have any issue when using latest version of Aspose.Slides for Java.