Hello,
I’m trying to create a TextParagraph object on pdf page. I noticed there are unnecessary hyphens between Chinese characters at every line end. Code as below:
var paragraph = new TextParagraph();
paragraph.Rectangle = new Rectangle(200, 600, 400, 700);
paragraph.FormattingOptions.WrapMode = TextFormattingOptions.WordWrapMode.ByWords;
paragraph.AppendLine(“阿阿阿阿阿阿阿阿阿阿阿阿阿阿阿阿阿阿阿阿”);
var textBuilder = new TextBuilder(page);
textBuilder.AppendParagraph(paragraph);
How to hide the hyphens?
I tried all 3 WordWrapMode, all look same.
I also tried to set the hyphen symbol to empty string as below, but nothing worked:
paragraph.FormattingOptions.HyphenSymbol = string.Empty;