-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Editing properties of a field #2559
Comments
@ReedGraff Do you have any example of such documents ? |
Here's a demo in Adobe illustrating what I'd like to be able to do in pypdf. Here's the example PDF. |
Looking at the provided PDF file (in this case the uncompressed content stream version from pdftk, but should be similar in pypdf itself), we have (original xobj is 6):
The most important difference to a regular field is
in this case: For comparison: This is how the not highlighted phone field is defined (the original xobj is 12):
|
Interesting, so how might I be able to create a function for this on top of the existing library? |
@ReedGraff what's the update status ? should we close it ? |
@pubpub-zz I ended up using pdftk and some other PDF editors, but I would love to see this feature in pypdf. If y'all don't think y'all are gonna add this anytime soon. We could probably close this. |
Explanation
I'd love to be able to change field properties. Specifically, in Adobe, it is possible to change the background color of a signature field to yellow, red, or another color for example. If someone could point me in the right direction I would happily make this myself.
Code Example
I assume this could be done two ways, by extending or appending functionality to the update_ function, or by creating a new function in its entirety. The latter of which is probably easier.
The text was updated successfully, but these errors were encountered: