Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Tue Sep 03, 2019 8:15 am

Hello,
i am trying to use function void PdfCanvas.DrawString() to print czech words and letters like č,š,ě,ř and so on. This doesn't seem to be working. I tried searching your support pages and tutorial, but none of them helped me. Is there any solution?
Best regards
Stepan

bosakstepan
 
Posts: 1
Joined: Mon Sep 02, 2019 9:39 am

Tue Sep 03, 2019 9:34 am

Hi Stepan,

Thanks for your inquiry.
I used following code with the latest Spire.PDF Pack(Hot Fix) Version:5.8.16 to test your case, and didn't notice any issue.
Code: Select all
            PdfDocument doc = new PdfDocument();
            PdfPageBase page = doc.Pages.Add();
            Rectangle rec = new Rectangle(new Point(10,20), new Size(300,300));
            PdfTrueTypeFont font = new PdfTrueTypeFont(new Font("Arial Unicode MS", 10.0F, FontStyle.Regular), true);
            page.Canvas.DrawString("č,š,ě,ř", font, PdfBrushes.Black, rec);
            doc.SaveToFile("18780.pdf");

Could you please provide the code you were using and point out what is your issue?

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Thu Oct 17, 2019 9:14 am

Hi,

Greetings from E-iceblue.
Has your issue been resolved? Could you please give us some feedback at your convenience?

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDF