-
-
Notifications
You must be signed in to change notification settings - Fork 671
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
Getting correct widget ref to be removed #1268
base: master
Are you sure you want to change the base?
Conversation
@kyle-leitham-aix do you know if there is any progress on this? I'm also running into this issue and marking the fields read-only isn't really an option since they're still editable. Any further info? |
@mel-habip It seems like this repo has been abandoned, unfortunately. As a workaround, I had to programmatically remove all of the page annotations before flattening. |
Could you provide an example of how to do this? We tried this but didn't quite work out for us. |
@mpalmahsf So, if you have the pdf document instance, it would be something like:
|
There is an issue with this approach. |
I tried this approach and worked but I applied that AFTER flattening the form. In that way the fields and texts appear well. |
What?
Gets correct widget ref from the document to remove the corresponding annotation ref from the page
Why?
Trying to fix this issue: #1267
How?
Gets the ref using doc.context.getObjectRef instead of findWidgetAppearanceRef (which seems to get the wrong ref?)
Testing?
Ran the unit tests
New Dependencies?
N/A
Screenshots
N/A
Suggested Reading?
No
Anything Else?
I'm new to this repo and PDF specifications, so I'm not sure this is the correct fix. Hoping it is!
Checklist