【发布时间】:2017-10-02 16:09:02
【问题描述】:
我已经尝试并搜索过这个问题,但没有运气。
这是我尝试过的。
using (PdfDocument doc = new PdfDocument(new PdfReader(template), new
PdfWriter(newPath)))
{
PdfAcroForm form = PdfAcroForm.GetAcroForm(doc, true);
// Replace form fields with correct data
form.GetField("Greet").SetValue("Hello world!");
// I have tried this to with no luck
form.GetField("Greet").SetJustification(1).SetValue("Hello World");
form.FlattenFields();
}
【问题讨论】:
标签: itext7