-
-
Notifications
You must be signed in to change notification settings - Fork 688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support hidden form fields #730
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jbeuckm! This will be a nice addition to the library.
In addition to updating the other field types, would you please update one of the integration tests to add a hidden field? That way this feature doesn't regress down the line.
Also, I'm curious what your use case for a hidden field is, if you don't mind sharing? I've never had occasion to use them myself. Just wondering what purpose they would serve.
@@ -669,6 +669,7 @@ export default class PDFTextField extends PDFField { | |||
borderColor: options.borderColor, | |||
borderWidth: options.borderWidth ?? 0, | |||
rotate: options.rotate ?? degrees(0), | |||
hidden: options.hidden, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would you please add this to all the different field types? (PDFButton
, PDFCheckBox
, PDFDropdown
, PDFForm
, PDFOptionList
, PDFRadioGroup
, PDFTextField
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes - I was just being lazy. I added I wanted a non-obvious way to mark a PDF so that I could check that it was (probably) the same original file later. I'm interested in hearing other ways to do the same. If there is a clear path to doing this with an encrypted certificate, I might help work on it. |
No description provided.