The Syncfusion® native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
HCHemalatha 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
HAhardikJanuary 22, 2021 04:22 AM UTC
Hi Team,
Please find attached test.docx, code, and dockerfile.
HCHemalatha 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.
HCHemalatha 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
MJMohanaselvam 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.