Set form field flags

88 views
Skip to first unread message

Benoît Condaminet

unread,
Feb 26, 2024, 12:37:46 PMFeb 26
to pdfium
Hello,

I can't find a way to set a form field flags using PDFium public API, do you know is there is a way to do it ?

Thank you.

Benoît Condaminet

unread,
Feb 26, 2024, 12:37:46 PMFeb 26
to pdfium
Hello,

I wonder how to set a form field flags using PDFium exposed public API ? 
I see that there is a FPDFAnnot_GetFormFieldFlags to get the form field flags, there is too FPDFAnnot_SetFlags to set the annotation flag. But nothing to set form fields flags, which are a different dictionary key (Ff). 

There is no method too to set annot dictionary number value, for example to set field value I use FPDFAnnot_SetStringValue on the 'V' dictionary key, can't see something similar for setting number type dictionary, like flags.

Do you know how to do that, or if there is something planned to have it working ?
An example would be to set readonly flags, or changing text fields flags.

Thank you.

Lei Zhang

unread,
Feb 28, 2024, 6:10:47 PMFeb 28
to Benoît Condaminet, pdfium
There's no public API. Please use https://crbug.com/pdfium/new to file
a feature request. The API should be relatively easy to implement, so
code contributions are welcome.
> --
> You received this message because you are subscribed to the Google Groups "pdfium" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pdfium+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pdfium/9d67e97c-2210-4c08-ad7b-763c3d80de6dn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages