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 : 2 years ago
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
Guest
Similar Topics
PdfTextObject.CalcCharPos (Common Questions)
by ESchunk 3 years ago
PdfTextObjects character coordinates (Bug Report & Technical Support)
by ESchunk 3 years ago
Font Family of PdfTextObject (Common Questions)
by gffranca 3 years ago
PdfTextObject with multiple Fonts (Common Questions)
by gffranca 4 years ago
Change font size of PdfTextObject (Common Questions)
by lxman 5 years ago
superscript and subscript information in PdfTextObject (Common Questions)
by arun 6 years ago
How to find rotated PdfTextObject's rotated bounding box? (Common Questions)
by rhnatiuk 6 years ago
PdfTextObject.TextAnsi converts Ellipsis to Ampersand (Bug Report & Technical Support)
by Guest 7 years ago
Multiline PdfTextObject (Common Questions)
by Elm 8 years ago
PDFTextObject - crash when setting TextAscii (Bug Report & Technical Support)
by zulsters 9 years ago
Incorrect Rectangles using PdfTextObject.GetCharRect (Bug Report & Technical Support)
by Guest 9 years ago
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.