0

我在 pdf 模板中有多行文本表单字段。我正在从数据库中显示文本;当文本很大时,表单域接受一些文本,而另一个被截断。如何在运行时增加表单字段的宽度/高度?

foreach (string field in _pdfStamper.AcroFields.Fields.Keys)
{
    if (field.StartsWith("FreeAnswer", StringComparison.InvariantCultureIgnoreCase))
    {
        TextPart tp = new TextPart();
        tp.LeftMargin = 5;
        tp.RightMargin = 5;
        tp.Text = answers[(openQuestionPages * 3) + add];
        _fillText(field, new List<TextPart>() { tp });
    }
}
4

0 回答 0