Ask Your Question
4

How do you specify the language of a document using EvoPDF?

asked 2022-04-22 11:00:00 +0000

ladyg gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-10-16 08:00:00 +0000

nofretete gravatar image

In EvoPDF, you can specify the language of a document using the "CultureInfo" property.

Here is an example code:

EvoPdf.Document document = new EvoPdf.Document("http://www.example.com");
document.CultureInfo = new System.Globalization.CultureInfo("en-US"); // set the language to English (United States)

document.ConvertToPDF();

In this code, we are creating a new document and setting the "CultureInfo" property to specify the language of the document. Then, we call the "ConvertToPDF" method to convert the document to a PDF file.

You can replace "en-US" with the language code for your desired language (e.g. "fr-FR" for French).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-04-22 11:00:00 +0000

Seen: 17 times

Last updated: Oct 16 '21