mirror of
https://github.com/unidoc/unipdf.git
synced 2025-04-29 13:48:54 +08:00
Add SetFlag to field
This commit is contained in:
parent
9efa91168d
commit
11febb4207
@ -537,6 +537,11 @@ func (f *PdfField) Flags() FieldFlag {
|
||||
return flags
|
||||
}
|
||||
|
||||
// SetFlag sets the flag for the field.
|
||||
func (f *PdfField) SetFlag(flag FieldFlag) {
|
||||
f.Ff = core.MakeInteger(int64(flag))
|
||||
}
|
||||
|
||||
// newPdfFieldFromIndirectObject load a field from an indirect object containing the field dictionary.
|
||||
func (r *PdfReader) newPdfFieldFromIndirectObject(container *core.PdfIndirectObject, parent *PdfField) (*PdfField, error) {
|
||||
d, isDict := container.PdfObject.(*core.PdfObjectDictionary)
|
||||
|
Loading…
x
Reference in New Issue
Block a user