Appending to a single Parent Field causes the parent field to disappear

Appending to a single Parent Field causes the parent field to disappear

Forum member · Apr 23, 2013
I'm encountering a problem in a acrobat form I'm trying to partially fill using Dynamic PDF Merger in an MVC app to send to the browser. I have two forms I'm trying to combine, the second of which could have multiples. My first forms has 5 fields on it Principal1 Principal1 Principal2 Principal3 Principal4 My second form has FullName Principal1 is repeated because it's used once in the salutation on page 1, and then on page 2 it lists all four principals (if there are four, there could be anywhere from 1-4 principals) In my code I'm looping though the collection of principals and for each one, I append a copy of the second form using the appropriate field on the first form as the parent field. Assume for example that I have 3 principals, given the gode below (the format for which I hope isn't butchered) Action<Person, string> appendPrincipalForms = (person, parentField) => { document.Append(personalNetWorthPath, new MergeOptions(true, parentField)); document.Form.Fields[parentField].Value = person.FirstName + " " + person.LastName; document.Form.Fields[parentField].ChildFields["FullName"].Value = person.FirstName + " " + person.LastName; }; for (int i = 0; i < principals.Count(); i++) { appendPrincipalForms(principals[i], "Principal" + (i + 1)); } The problem is that when the resulting form is outputed, the field Principal1 is set correctly, the fields Principal2 and Principal3 are gone (only in Adobe PDF reader, in Chrome they are fine) and Principal4 is still there and still empty as expected. Opening the form in PDF Designer shows that the fields are missing (yet why do they show in Chrome's PDF viewer?) However if I add a duplicate Principal2 and Principal3 field to the first form, then the resulting form is perfect. Is there some reason why appending one form to another form, using a field which only which has one occurenace on the first form, would cause the parent field to no longer be available in Adobe PDF? ~Nick

Re: Appending to a single Parent Field causes the parent field to disappear

Support · Apr 24, 2013
Hello Nick, Please forward the following information to [^a|mailto:support@cete.com|opennewwindow|support@cete.com^] so we can look into this issue further. 1. Copy of input PDF forms that are being merged. 2. Copy of the output PDFs generated. 3. Version and build number of DynamicPDF dll used. 4. Any other applicable C# code other than the code already provided above. Thanks, ceTe Software Support Team.