While converting the PPT document to pdf. We are facing issue with pdf. We can see symbol & character are not coming clear with 100 percentage resolution with pdf file.
I am attaching the ppt document, expected pdf document, and pdf document which had an issue. Also, please find the code snippet which we are using to convert the ppt to pdf.
@forasposeissues Your question is related to Aspose.Slides. I will move the topic into the appropriate forum category. My colleagues from Aspose.Slides team will help you shortly.
I noticed the issue as you mentioned by simply converting your PPTX to PDF via Aspose.Slides for Java. I found some chars and symbols are not rendered properly.
We need to evaluate your issue in details. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): SLIDESJAVA-39351
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
We need your fonts to evaluate your issue thoroughly. Could your please share ‘Citi Sans Text’ and ‘Citi Sans Condensed’ fonts. We will look into your issue soon.
We are pleased to inform you that your issue (logged earlier as “SLIDESJAVA-39351”) has been resolved. Hopefully, the fix will be included in an upcoming release ( Aspose.Slides for Java v24.4) that we plan to release in this month. You will be notified when the fixed version is released.
@forasposeissues,
The issues you found earlier (filed as SLIDESJAVA-39351) have been fixed in Aspose.Slides for Java 24.4 (JAR).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.
I tested your scenario/case using Aspose.Slides for Java 24.5 and it works fine. I used your original template PPTX file you provided earlier with the following sample code.
e.g., Sample code:
com.aspose.slides.Presentation presentation = new com.aspose.slides.Presentation("d:\\files\\Sample_PPT.pptx");
com.aspose.slides.PdfOptions pdfOptions = new com.aspose.slides.PdfOptions();
pdfOptions.setRasterizeUnsupportedFontStyles(true);
// Saves the presentation as a PDF
presentation.save("d:\\files\\PDF-result1.pdf", com.aspose.slides.SaveFormat.Pdf,pdfOptions);
Please find attached the output PDF file which is fine tuned. PDF-result1.pdf (147.1 KB)
But, team could you please help to suggest what would be reason in which symbol was getting overlapped.
Also, we are setting textCompression to PdfTextCompression.FLATE.
Sample of pptx is already shared with you. You can use that pptx document. we are testing on same pptx document. Please find complete code to convert ppt to pdf.
Please try the following sample code only (just update file paths in code) in a separate Java program using Aspose.Slides for Java 24.5 with your template PPTX file.
e.g., Sample code:
com.aspose.slides.Presentation presentation = new com.aspose.slides.Presentation("d:\\files\\Sample_PPT.pptx");
com.aspose.slides.PdfOptions pdfOptions = new com.aspose.slides.PdfOptions();
pdfOptions.setRasterizeUnsupportedFontStyles(true);
// Saves the presentation as a PDF
presentation.save("d:\\files\\PDF-result1.pdf", com.aspose.slides.SaveFormat.Pdf,pdfOptions);
Please attach the output PDF file for our reference.
Thank you for the output PDF with Aspose.Slides for Java 24.5. I checked it and it looks fine to me (symbols are not overlapped), doesn’t it? If you find any issues, kindly let us know with details and screenshots. We will further investigate.
Sorry, I was checking the first page. Now I found the issue in your provided PDF file. But could you please open my output PDF PDF-result1.pdf (147.1 KB)