PPT(X) to PDF: Text are missing and only slides background is rendered while using GroupDocs.Conversion 21.10

@ChourasiyaRajesh

Please try to add memory by -Xmx jvm option. Let us know if issue persists.

Hi,

Ok Thanks. will try to increase the memory. Is there any min value which is required?
Also let us know if the issue is reproduced and worked after changes at your end?

Thank you
Rajesh Chourasiya

@ChourasiyaRajesh

Not specifically. It depends on your hardware resources. Also make sure there is no memory leak before assigning the initial Java heap size/value. And yes, it resolved the issue at our end.

Hello @Atir_Tahir,

It worked for below both the cases of conversion by updating below changes

  • PPTX -> PDF (CONVERSIONJAVA-1552)

  • XPS -> PDF (CONVERSIONJAVA-1553)

Changes made:

  1. In java file
final ConverterSettings converterSettings = new ConverterSettings();
converterSettings.setFontDirectories(Collections.singletonList(System.getProperty(“java.io.tmpdir”)));
final Converter converter = new Converter(new ClassPathResource(resourcePath).getInputStream(), converterSettings);
final String convertedPath = System.getProperty(“java.io.tmpdir”) + File.separator + “Converted” + resourceExt + “.pdf”;
converter.convert(convertedPath, new PdfConvertOptions());
  1. In Docker file
    ADD target/classes/fonts/DejaVuSans.ttf /tmp
    ENV JAVA_OPTS=-Xmx1g
    ENTRYPOINT exec java $JAVA_OPTS -jar /tmp/test-conversion-docker.jar

Observation:
In pptx conversion,

  • The bullet points are converted to special characterlike “n” and for few files we saw some overlapping in jotted points on first characters in line.This is observed in both DejaVuSans.ttf and MsGothic.ttf fonts. Can we do something to resolve this issue?

  • Observed the shadow for some characters in converted pdf file if the original file is in italics style.

The converted file is attached for reference.
ConvertedPptx.zip (3.6 MB)

Thanks for your support
Rajesh Chourasiya

1 Like

@ChourasiyaRajesh

DejaVuSans and MsGothic fonts are installed on your machine/environment? You can learn about the missing fonts as follows:

  • Convert source file to PDF on Windows machine
  • Open source file and look for the installed fonts (e.g. using Foxit Reader you can see installed fonts in properties/fonts - installed fonts.jpg (96.5 KB)
  • Make sure those fonts are also installed on your Linux machine