Merging Acro Form Fields

Merging Acro Form Fields

Forum member · May 8, 2006
Sorry I posted this in the wrong area so I added it here also. We have an asp/vbScript web application where users select a number of pdfs which we merge (using Merger v3.0 for Com/ActiveX) into one pdf for them to fill out and print. Some fields share a name so when the user enters a value it caries over to all other fields with the same name. I've tried setting the MergeFormFields to True, and both setting and not setting a RootFormField. Tried using the same and diferent root value for each pdf being merged. I have been able to get it to carry the value over to the same named fields on the same source form but then on the rest of the forms being merged the fields are no longer editable (I'm using a seperate MergeOptions object for each source pdf). The cursor changes from a hand to an IBar but doesn't accept input. When I save the merged pdf and open it in Adobe Designer it shows the binding for the fields as "normal" (shouldn't it show as "global"?). Is there a way to have the fillable forms with same-name fields work accross the source pdf boundaries in the merged pdf?

Re: Merging Acro Form Fields

Support · May 8, 2006
There actually is no way currently to take form fields with the same name, coming from different source PDF documents, and merge all the documents together while still allowing all the form field names to match. In other words, if document A containing form field 1 & 2 was merged with document B that also contained another field 1 & 4 there is no way to get field 1 from document A and B to match in there name of the final merged document. Your option for this is to create a unique MergeOption's RootFormField name for each document that you merge in. Then each set of form fields for each merged or appended document will have the RootFormField name prepended to it. But this does change the name of the form fields in each document. If you are using the same MergeOptions object and are not seeing this behavior then we would need to look into your code a bit more to see what might be causing this. If so, please send over some sample source code you sure using (source code that demonstrated filling in at least one form field from two different documents where the form fields should have the same name but don't) as well as the original PDF documents and the output final PDF document. We will then be able to see better what is going on. All this should be sent over to [^a|mailto:support@cete.com|support@cete.com^] with reference to this forum post. We will look into it and get back to you shortly thereafter. Thanks, ceTe Software Support Team

Re: Merging Acro Form Fields

Forum member · Jun 14, 2006
Greetings, I am also having a problem merging PDF documents with forms. First I create a master PDF document. Then, from within a loop, I use AppendPdf to append multiple versions of the same child PDF document containing form fields. I use MergeOptions with MergeFormFields = True and RootFormField set to some unique prefix for each document ("Fnn", nn=1,2,...). When I save the final document and open it in Acrobat, I can see that the names of the form fields in each subdocument have the assigned prefix (e.g. "F1.Date", "F2.Date" etc.). Acrobat allows me to enter (separate) values into each field. This works as expected. However, using the DynamicPDF component to enumerate the form fields and childfields, I only ever see the fields on the first subdocument. Fields in appended subdocuments are apparently *NOT* accessible in any way through the component... I tried enumerating the Fields and ChildFields collections recursively, and also to access the fields directly using Form.Fields.Item("ParentFieldName.ChildFieldName"). But the component is only aware of the fields in the first subdocument, e.g. it finds "F1.Date", but not "F2.Date". More specifically, the only top-level Field that is accessible is the one on the first subdocument, "F1", and it's child fields. No other fields are detected. This problem prevents me from filling the field values from code. I would appreciate any help solving this problem. Thank you, Michel Rutten wmrutten --- AT --- seneca --- DOT --- nl

Re: Merging Acro Form Fields

Support · Jun 14, 2006
Hello Michel, Thanks for pointing this out. The developers are currently working on getting this resolved. We will post a message once we have this issue resolved. Thanks, ceTe Software Support Team

Re: Merging Acro Form Fields

Forum member · Jun 15, 2006
Thank you for your response. I am looking forward to a solution. Other than this, the component is doing a fine job and it is also pretty fast. Greetings, Michel Rutten