Plumsail forms on Sharepoint 2019 to PDF does not support Thai language

Hi there,
I try to click on a PDF icon on the top right of my forms and it work properly if my forms does not have any thai language. Would you please suggest me how to print a forms to PDF in Thai language?

Hello @JugkritNWR,

Welcome to Plumsail Community!

Please try out the approach described in How to save SharePoint form as PDF: Non-Latin and special characters article.

Also, please see the PDF export cannot print Chinese words post for the reference.

Hello, @mnikitina
I have put below css code into a css editor but it does not work.

/apply DejaVu Sans font to the content/
.k-pdf-export {
font-family: 'DejaVu Sans', 'Arial', sans-serif !important;
font-size: 12px;
}

/declair DejaVu Sans font/
@font-face {
font-family: 'DejaVu Sans';
src: url('https://kendo.cdn.telerik.com/2020.1.406/styles/fonts/DejaVu/DejaVuSans.ttf') format('truetype');
}

@font-face {
font-family: 'DejaVu Sans';
font-weight: bold;
src: url('https://kendo.cdn.telerik.com/2020.1.406/styles/fonts/DejaVu/DejaVuSans-Bold.ttf') format('truetype');
}

@font-face {
font-family: 'DejaVu Sans';
font-style: italic;
src: url('https://kendo.cdn.telerik.com/2020.1.406/styles/fonts/DejaVu/DejaVuSans-Oblique.ttf') format('truetype');
}

@font-face {
font-family: 'DejaVu Sans';
font-weight: bold;
font-style: italic;
src: url('https://kendo.cdn.telerik.com/2020.1.406/styles/fonts/DejaVu/DejaVuSans-Oblique.ttf') format('truetype');
}

@JugkritNWR,

As I understand, you are using SharePoint On-Premises. That is why you must download a font that support Thai language and upload to your SharePoint, to any document library.

Then you must update the path to the font in the CSS:

@font-face {
font-family: 'DejaVu Sans';
font-weight: bold;
src: url('https://contoso.sharepoint.com/sites/Main/SiteAssets/DejaVuSans-Bold.ttf') format('truetype');
}

Hello @mnikitina
It work.
Thank you very much.

1 Like