0

如何使用 XFA 和 iTextSharp 在 PDF 中设置“只读”字段?我知道我必须修改 XML,但我不知道要设置哪个属性/值。

var attr = xfa.DomDocument.CreateAttribute("fflags");
attr.Value = "1";
xfa.DomDocument.GetElementsByTagName("my_field")[0].Attributes.Append(attr);
4

1 回答 1

0

我没有使用 iTextSharp,但您正在寻找的 XFA 中的access属性是字段上的属性。值为“只读”。

<field access="readOnly">

将使该字段只读。

于 2013-12-19T15:26:32.730 回答