Character and Symbol Are Not Clear when Converting PPTX to PDF in Java

Hi Team,

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.

String rightsWatchMark = (String) ppt.getDocumentProperties().get_Item("RightsWATCHMark");
String encodedRightsWatchMark = Base64.getEncoder().encodeToString(rightsWatchMark.getBytes());
com.aspose.pdf.Document pdfDocument = new com.aspose.pdf.Document(outputPdfFilePath);
DocumentInfo documentProperty = pdfDocument.getInfo();
documentProperty.set_Item("RightsWATCHMark", encodedRightsWatchMark);
pdfDocument.save();

Sample.zip (1.4 MB)

@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.

@forasposeissues,

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.

@forasposeissues,

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.

Please find the fonts used in PPT for Citi Sans.
Citi_Sans_Fonts.zip (600.5 KB)

@forasposeissues,

Thanks for the font files.

We have logged the archive with your existing ticket “SLIDESJAVA-39351” into our database.

Once we figure your issue out or we have some other updates on it, we will let you know.

@forasposeissues,

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.

Hi Team,

We have upgraded aspose slides version to 24.4, and set RasterizeUnsupportedFontStyles as true.

pdfOptions.setRasterizeUnsupportedFontStyles(true);

Please find the screenshot in which we used same ppt file to convert into pdf.

image.png (198.5 KB)

@forasposeissues,

Thanks for the screenshot and details.

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)

Okay, Thanks for the update.

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.

Appreciate for help.

Thanks

@forasposeissues,

Could you please share complete sample (runnable) Java code and presentation file(s) that can reproduce the issue on our end? We will check it soon.

Hi Team,

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.

sample.png (23.0 KB)

@forasposeissues,

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.

SamplePPT_PDF.pdf (420.4 KB)

Hi Team,

Please find the attached pdf

@forasposeissues,

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.

Hi Team,

Please find the screenshot in which i have highlighted in yellow. Please help to check.
image.png (253.0 KB)

@forasposeissues,

I used Adobe Reader to open your output PDF file, and it looks okay to me. See the screenshot for your reference.
sc_shot1.png (179.1 KB)

Please help to check the 2nd page of PDF.
image.png (131.1 KB)

@forasposeissues,

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)

Do you still find the issue on the second page?