When merging documents the merged AcroForm fields get a prefix "dummyFieldName" and a number (starting from 1) assigned as their root field names.
This exists as -currently -when multiple AcroForms are merged each AcroForm set of fields is treated independently of each other. BR Maruan > Hi all, > > Thanks in advance for your help. > > I have a PDF file that has form fields named using the hierarchical naming > convention. For example: > table.0.firstName, table.0.middleName, table.0.lastName, > table.1.firstName, table.1.middleName, table.1.lastName, etc. > > I'm changing the numeric nodes' partial names using: > field.setPartialName(newName) > > After that, I check the new field names, and they are renamed correctly (see > the attached output.txt). So, it seems that it worked. > > Then, I'm merging the document after another document using: > PDFMergerUtility.mergeDocuments(null) > > But, when I open the newly created (merged) PDF file in Acrobat Pro, all the > field names have names like "dummyFieldName" (the incorrect part) followed by > "1.0A.firstName" (the correct part), instead of the names in the attached > output.txt. > > I have attached the PDF file that I'm changing names in, Attachment.pdf, and > the new file after merging, test.pdf. > > Thanks, > Rob > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org > For additional commands, e-mail: users-h...@pdfbox.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org