Convert Word to PDF in PHP using GroupDocs.Conversion REST API changes bullet points

@tilal.ahmad

When converting a word document to PDF bullet points inside word document get converted to clocks icon. Screenshot in the attachment. I have also attached both Word and PDF file in the attachment.
a691d0b9-20ec-4825-9220-15ebd813909c.jpg (186.2 KB)
f22e309d-c86a-48b9-927c-c447621edb00.jpg (223.2 KB)
Handout - Sketch the Scene (Narrative).docx (320.6 KB)
Student Handout #1.pdf (602.4 KB)

We are using PHP SDK to call the API.

Thank you,
Gopal
a691d0b9-20ec-4825-9220-15ebd813909c.jpg (186 KB)
f22e309d-c86a-48b9-927c-c447621edb00.jpg (223 KB)
Handout - Sketch the Scene (Narrative).docx (321 KB)
Student Handout #1.pdf (602 KB)

@gopalsharma

You are getting the issue due to missing font. Please note since GroupDocs.Conversion Cloud 21.4, we start supporting the use of custom fonts in the conversion. Please create a font folder(fonts/ttf) in the cloud storage, copy the custom fonts(in this case symbol.ttf) to it and pass its path to the FontsPath parameter. It will resolve the issue.
Handout - Sketch the Scene (Narrative).pdf (598.8 KB)

$settings->setFontsPath("fonts/ttf");

1 Like

Thank you @tilal.ahmad for you help.
This works exactly as expected. Following is the code if someone looking to resolve the same issue.

$watermark = new GroupDocs\Conversion\Model\WatermarkOptions();
$watermark->setItalic(true);
$watermark->setBold(true);

$settings = new GroupDocs\Conversion\Model\ConvertSettings();
$settings->setFontsPath("fonts/ttf");
1 Like