RFC: PDF Form Elements
### Description # Proposal Add PDF form elements, i.e. elements which when exported create form fields a user can interact with. The following form elements are currently supported by pdf-writer 0.10.0: - text - fixed input size (comb) - redacted (password) - file selection - choice - list box (scrollable, single line) - combo box (dropdown) - custom input - multi select - buttons - radio buttons - push buttons - check boxes ## API First, I want to propose the API for the elements themselves, ignoring name conflicts for now: ### Text elements (PDF 1.7, Section 12.7.4.3) ```typst #let text( // whether this field is multiline or not multiline: bool = false, // whether this field is a password (redacted) field or not passsword: bool = false, // whether the field should scroll (horizontally) to accomodate large inputs scroll: bool = true, // whether the input should be separated into the given number of "characters" (like a bank number input field) comb: int | none = none, // default body default: str | none = none, ) = ... ``` ### Choice elements (PDF 1.7, Section 12.7.4.4) ```typst #let choice( // whether this field is a drop down or a list box dropdown: bool = true, // whether this field accepts custom choices edit: false, // whether more than one choice can be selected multiselect: bool = false, // the choices which are selected by default default: array<str> | none = none, // the choices the user is presented wi
Posted by tingerrr on Jun 10, 2024, 4:42 PM
Tags
Related issues
Raise real-world problems, find people facing the same issue, and discuss solutions.2,000 issues0 comments
reliability (FinTech)
I know that Apple MFI certified Lightning cables work well with iDevices, but I found that third-party non-MFI-certified Lightning cables...
Apple are similarly bad with iCloud nagging on iPhone: Microsoft and Apple want recurring monthly income and are willing to use dark patt...
RFC: PDF Form Elements
RFC: PDF Form Elements
### Description # Proposal Add PDF form elements, i.e. elements which when exported create form fields a user can interact with. The following form elements are currently supported by pdf-writer 0.10.0: - text - fixed input size (comb) - redacted (password) - file selection - choice - list box (scrollable, single line) - combo box (dropdown) - custom input - multi select - buttons - radio buttons - push buttons - check boxes ## API First, I want to propose the API for the elements themselves, ignoring name conflicts for now: ### Text elements (PDF 1.7, Section 12.7.4.3) ```typst #let text( // whether this field is multiline or not multiline: bool = false, // whether this field is a password (redacted) field or not passsword: bool = false, // whether the field should scroll (horizontally) to accomodate large inputs scroll: bool = true, // whether the input should be separated into the given number of "characters" (like a bank number input field) comb: int | none = none, // default body default: str | none = none, ) = ... ``` ### Choice elements (PDF 1.7, Section 12.7.4.4) ```typst #let choice( // whether this field is a drop down or a list box dropdown: bool = true, // whether this field accepts custom choices edit: false, // whether more than one choice can be selected multiselect: bool = false, // the choices which are selected by default default: array<str> | none = none, // the choices the user is presented wi
Comments (0)
No comments yet. Start the discussion.