63
Views
2
Comments
Solved
[Ultimate PDF] Multilingual locales with UltimatePDF
ultimate-pdf
Reactive icon
Forge asset by Leonardo Fernandes
Application Type
Reactive
Service Studio Version
11.54.37 (Build 63002)

I'm utilising Multilingual locales and have an issue with downloading PDFs in the current locale language. The component consistently generates a file with text from the default locale. Is there a solution to obtain a file in the current locale language?

2023-12-16 19-57-03
Sanjay Kushwah
Solution

Hi @Viktar Ramaneika,

whatever is your current locale in which you need to print PDF just send that language code to pdf screen and Oninitialize of it just call setLocale action to set your Language.


In my OML file

Step 1 select japanese language at UI from DropDown

Result : message is translated to selected language (ie Japanese) on PDF

Attaching OML file for your help

Note: Please take required dependencies from UltimatePDF.


Kind regards,

Sanjay Kushwah

LanguagePDF.oml
2022-10-19 00-51-44
Viktar Ramaneika

Great! Thank you, @Sanjay Kushwah!

I've modified the solution for my case a little bit. I'm downloading a file from the PDF preview screen, so I've added the language code as an input parameter, SetLocale action OnInitialize, and sent GetBookmarkableURL() to the PrintToPDF.


Thank you again, and have a great weekend! :)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.