Merge Multiple PdfLoadedXfaDocument

Hi

I am able to successfully open a single editable XFA PDF using PdfLoadedXfaDocument, populate the fields and save back to a file.

What I would like to do is loop through several XFA forms, filling them out as I go, but only saving to a single file with multiple forms, once I have finished the loop.

I am aware of the ability to merge several files from disk, but that seems wasteful to me.

What is the most efficient way looping through several XFA forms, populating them then saving a single "Summary" file.

Thanks


3 Replies 1 reply marked as answer

GK Gowthamraj Kumar Syncfusion Team February 28, 2022 11:18 AM UTC

Hi Louise 

At present, we do not have support for merging with XFA PDF document. We have already logged the feature request for this “Need to add the support for merging XFA documents”. Currently, we do not have any immediate plans to implement this feature. We will let you know once the feature is implemented.       

The status of implementation can be tracked through our Feature Management System:       

Please refer the below documentation link for XFA, 

Regards, 
Gowthamraj K 


Marked as answer

LO Louise replied to Gowthamraj Kumar February 28, 2022 07:55 PM UTC

Are you aware of any work arounds? I would be happy to flatten the XFA into a regular PDF and then merge, but Flatten appears to be broken with my document. See this forum thread Call To XFA Flatten Results In Null Reference Exception



GK Gowthamraj Kumar Syncfusion Team March 1, 2022 11:34 AM UTC

Hi Louise, 

We do not have any workaround to merge the XFA PDF document. If you merge the XFA PDF document with other PDF files, the document will be merged but the XFA are removed. In last update, you want to flatten the XFA PDF document, we can flatten it by enabling the Flatten property of PdfLoadedXfaDocument and merge the documents. 
 
Please refer to the below documentation link for more details, 


Regards, 
Gowthamraj K 


Loader.
Up arrow icon