While converting Word to Pdf in Linux , The image bullets are not appearing on Pdf file.

While converting Word to Pdf in Linux, The image bullets are not appearing on the Pdf file.


But in windows OS, it’s working as expected


After installing below necessary fonts in Linux containers: 


Result:



7 Replies 1 reply marked as answer

HC Hemalatha Chiranjeevulu Syncfusion Team January 21, 2021 04:22 PM UTC

Hi Hardik,

Thank you for contacting Syncfusion support.

We are currently set up a similar environment to check
the reported problem and we will update the details on 22nd January 2021. We suspect that the problem might be due to the file level information in the input Word document used at your end. So, could you please share us the input Word document which used at your end to reproduce the same problem.

Please let us know if you have any other questions.

Regards,
Hemalatha C 



HA hardik January 22, 2021 04:22 AM UTC

Hi Team,

Please find attached test.docx, code, and dockerfile.


Attachment: New_folder_53e81c51.zip


HC Hemalatha Chiranjeevulu Syncfusion Team January 22, 2021 02:39 PM UTC

Hi Hardik,

Thank you for your patience.

On further checking with the given details, we have found that the preservation problem occurs due to the “Symbol” font missed in Docker Linux environment. In DocIO, we are using SkiaSharp graphics library for measuring techniques in ASP.NET Core platform during Word to PDF conversion. If the necessary fonts used in the Word document has been not available in the production environment, then SkiaSharp uses some other default fonts for rendering the text. So, it preserves improperly in the generated PDF.

To resolve this issue, we have prepared the sample and modified in DockerFile to copy the fonts to Docker. Please find the sample and the output document generated at our end from the below link:
https://www.syncfusion.com/downloads/support/forum/161688/ze/SampleAndOutput1123069179
Note: Please place the Symbol Font file (*.ttf) inside “Fonts” folder and then run the sample.

Using SubstituteFont event you can identify the list of fonts which are not available in the production environment. Please refer the below link to know more about font substation in Word to Pdf:
https://help.syncfusion.com/file-formats/docio/word-to-pdf#font-substitution

Please let us know if you have any other questions.

Regards,
Hemalatha C



HA hardik January 25, 2021 08:16 AM UTC

Hi Team,
Thanks for the quick response.

First issue: After using the same docker file and Added Fonts folder, facing the below issue. Please find the attached project files. 
Second issue:
Still, bullets are not appearing in the list of what you have shared working project:
Note: Please place the Symbol Font file (*.ttf) inside “Fonts” folder and then run the sample.----Copied Symbol file into Fonts folder.




Attachment: SyncFusionWebApi_80d4bffc.zip


HC Hemalatha Chiranjeevulu Syncfusion Team January 26, 2021 05:31 PM UTC

Hi Hardik,

Thank you for sharing the details

Currently, we are checking on your query and will update you with more details on 27th January 2021.

Please let us know if you have any other questions.

Regards,
Hemalatha C 



MJ Mohanaselvam Jothi Syncfusion Team January 27, 2021 02:47 PM UTC

Hi Hardik,

Thank you for your patience.

We have tried to reproduce the reported problem using the given sample, but it works properly at our end. For your reference, we have attached the output PDF document which generated at our end using the given sample application (*.sln  file saved parallel to Fonts folder). Please find the generated PDF from the below link:
https://www.syncfusion.com/downloads/support/forum/161688/ze/Output292789539

We suspect that the reported problem might be due to the improper folder location at your end. Could you please check whether solution file (*.sln ), .csproj and Fonts folder are in same hierarchy. In the given sample, we have not found the *.sln file. We have generated *.sln  file and saved in same folder hierarchy of .csproj.

If your sample has *.sln file and Fonts folder in different hierarchy, please use the below code in DockerFile to access the Fonts folder 
COPY FolderName/Fonts/ /usr/share/fonts/truetype/ 

If your sample has .*sln file and Fonts folder in same hierarchy, then use the below code in DockerFile to access the Fonts folder.
 
COPY Fonts/ /usr/share/fonts/truetype/ 

If you are still facing same issue means, you can also set alternate font using
SubstituteFont event during Word to PDF conversion. Please refer the below code example and kindly use in your application to use alternate font for missing fonts in production environment:
https://help.syncfusion.com/file-formats/docio/word-to-pdf#font-substitution
https://help.syncfusion.com/file-formats/docio/word-to-pdf#event-handler-to-use-alternate-font-without-installing

Please let us know if you have any other questions.

Regards,
Mohanaselvam J
 


Marked as answer

HA hardik January 28, 2021 11:15 AM UTC

Thank you So much. Now it's working.
my *.sln file and Fonts folder was in different hierarchy,

Loader.
Up arrow icon