Hi,
Greetings from e-iceblue!
After an initial investigation, we found the issue can be resolved by specifying the font which supports the character you added, eg, the "Arial". The latest pdf hotfix can generate correct result after declaring font, yet it is not included in the recent office package. Once the new office hotfix is released, I will let you know.
Below is the code to set font.
- Code: Select all
PdfDocument doc = new PdfDocument();
doc.LoadFromFile(file);
PdfFormWidget formWidget = doc.Form as PdfFormWidget;
for (int i = 0; i < formWidget.FieldsWidget.List.Count; i++)
{
PdfField field = formWidget.FieldsWidget.List[i] as PdfField;
if (field is PdfTextBoxFieldWidget)
{
PdfTextBoxFieldWidget textBoxField = field as PdfTextBoxFieldWidget;
textBoxField.Font = new PdfTrueTypeFont(new Font("Arial", 8), true);
switch (textBoxField.Name)
{
case "textbox name ":
textBoxField.Text = "příliš žluťoučký kůň úpěl ďábelské ódy";
break;
}
}
}
Sincerely,
Jane
E-iceblue support team