Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 XFA 和 iTextSharp 在 PDF 中设置“只读”字段?我知道我必须修改 XML,但我不知道要设置哪个属性/值。
var attr = xfa.DomDocument.CreateAttribute("fflags"); attr.Value = "1"; xfa.DomDocument.GetElementsByTagName("my_field")[0].Attributes.Append(attr);
我没有使用 iTextSharp,但您正在寻找的 XFA 中的access属性是字段上的属性。值为“只读”。
access
<field access="readOnly">
将使该字段只读。