Dear Aspose-Support,
when converting e.g. following PPTX:
image.png (5.4 KB)
to a PDF file, the bullet points get all messed up:
image.png (61.6 KB)
this problem is reproducable on our productive environment (linux-server), however i cannot reproduce it ever on my local machine (windows).
I was suspecting a missing font might be the problem, so i tried to get all fonts used in a PPTX and then log a warning if the PPTX uses a font not installed on our servers but so far i’m not getting anything relevant logged either.
There’s not much to our pptx-to-pdf conversion code:
private ByteArrayContent generatePdfContent(Presentation presentation) { PdfOptions options = new PdfOptions(); options.setSaveMetafilesAsPng(true); options.setTextCompression(PdfTextCompression.Flate); options.setCompliance(PdfCompliance.Pdf15); ByteArrayOutputStream pdfOutputStream = new ByteArrayOutputStream(); presentation.save(pdfOutputStream, SaveFormat.Pdf, options); return new ByteArrayContent(pdfOutputStream.toByteArray(), "application/pdf"); }
while experimenting, i also added
options.setDefaultRegularFont(“Arial”);
options.setEmbedTrueTypeFontsForASCII(true);
options.setEmbedFullFonts(true);
that changed the bulletpoints, but they were still the wrong characters regardless:
image.png (8.8 KB)
I hope you can help me because i slowly dont know what to do anymore.
Thank you in advance!