Rename existing form field name #1031
Unanswered
StefanZivkovic
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
When I retrieve pdf fields for doc
const fields = (await PDFDocument.load(content)).getForm().getFields()
I would like to rename existing form field name. I have found that I am able to do something like thisfields[1].acroField.setPartialName('new field name')
, wheresetPartialName
definition is like this:I can confirm that this seems to work. But I have question: is this valid action and does it have some (unexpected) side-effects?
02 Feb 2022, EDIT: upload with new discovery which I posted on this question as well #600
Beta Was this translation helpful? Give feedback.
All reactions