Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Problem in merging two documents using Assembler service???


Not applicable


I'm trying to merge two documents using Assembler service. In the first document, I have three form fields (One textbox and two buttons). There are separate onclick events written for each button. We have to fill the text box with enduser's input. The second document is a simple pdf image document. If I convert form (First document) to pdf to merge with second document, the buttons in the document are not working. If not, when trying to merge actual form with pdf using assembler service, it is throwing following errors:

Caused by: com.adobe.internal.pdfm.assembly.AssemblyException: PDFM_S02012: Document "srij_test1.pdf" cannot be assembled because it has an AcroForm and the base document "coverpage" has XFA.

          at com.adobe.internal.pdfm.assembly.DocAssembler.insertDocument(

Please suggest how to resolve this....

Thanks in advance.......

0 Replies


Not applicable


Try making the form as the base document and PDF as the first document. Then try to use the below script to merge the documents:

<DDX xmlns="">

    <PDF result="document.pdf">

    <PDF source="doc1"/>


    <PDF source="doc2" baseDocument="true"/>






Hi Ramu,

Can you please pass on the exact DDX and input PDF documents that your using?