logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Masami  
#1 Posted : Thursday, October 5, 2023 4:12:25 AM(UTC)
Masami

Rank: Newbie

Groups: Registered
Joined: 9/17/2023(UTC)
Posts: 1
Japan
Location: Tokyo

I'm coding a program to make a pdffile including Japanese word.

In the following code,it writes "Hello" in document(txt.TextUnicode = "Hello")

PdfDocument doc = PdfDocument.CreateNew();
var font = PdfFont.CreateFont(doc, "YuMincho");//Yumincho is a popular Japanese font.
string text = "Hello";
var txt = PdfTextObject.Create(text, 300, 300, font, 20);

But When I change the 3rd line to

string text = "こんにちわ"; //Hello in Japanese

It writes nothing( txt.TextUnicode = "").

When I change the 3rd line to

string text = "こ";

It writes nothing but txt.TextUnicode is "ÿ".

I can't understand the reason, so please teach me some solution.
Users browsing this topic
Similar Topics
PdfTextObject.CalcCharPos (Common Questions)
by ESchunk 4/15/2022 8:33:48 AM(UTC)
PdfTextObjects character coordinates (Bug Report & Technical Support)
by ESchunk 3/4/2022 5:36:05 PM(UTC)
Font Family of PdfTextObject (Common Questions)
by gffranca 2/7/2022 10:59:58 AM(UTC)
PdfTextObject with multiple Fonts (Common Questions)
by gffranca 6/21/2021 2:53:14 PM(UTC)
Change font size of PdfTextObject (Common Questions)
by lxman 2/27/2020 8:44:50 PM(UTC)
superscript and subscript information in PdfTextObject (Common Questions)
by arun 10/17/2019 6:58:45 AM(UTC)
How to find rotated PdfTextObject's rotated bounding box? (Common Questions)
by rhnatiuk 6/7/2019 6:03:47 AM(UTC)
PdfTextObject.TextAnsi converts Ellipsis to Ampersand (Bug Report & Technical Support)
by Guest 3/27/2018 12:39:02 PM(UTC)
Multiline PdfTextObject (Common Questions)
by Elm 12/20/2016 11:03:59 AM(UTC)
PDFTextObject - crash when setting TextAscii (Bug Report & Technical Support)
by zulsters 3/31/2016 12:40:05 PM(UTC)
Incorrect Rectangles using PdfTextObject.GetCharRect (Bug Report & Technical Support)
by Guest 1/23/2016 1:39:32 AM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.