Getting correct widget ref to be removed#1268
Getting correct widget ref to be removed#1268kyle-leitham-aix wants to merge 1 commit intoHopding:masterfrom
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