Answer the question
In order to leave comments, you need to log in
How can I generate a PDF document in Russian using C#?
I want to create a PDF document from scratch and sign it using IText7 libraries. I was able to sign, but I cannot generate a document in Cyrillic.
String SRC = @"C:\\download\\demo.pdf";
PdfWriter writer = new PdfWriter(SRC);
PdfDocument pdf = new PdfDocument(writer);
Document document = new Document(pdf);
Paragraph header = new Paragraph("Текст для примера Example text")
.SetTextAlignment(TextAlignment.RIGHT)
.SetFontSize(10);
Paragraph subheader = new Paragraph(textBox1.Text)
.SetTextAlignment(TextAlignment.CENTER)
.SetFontSize(15);
document.Add(subheader);
document.Add(header);
document.Close();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question