Merge two xdps and make a pdf in AEM Forms | Community
Skip to main content
Level 2
March 14, 2022
Solved

Merge two xdps and make a pdf in AEM Forms

  • March 14, 2022
  • 1 reply
  • 2324 views

Hi Team,

 

Here is my use case : There is one address fragment (xdp1) and there is one main form xdp2. Want to merge xdp1 into xdp2 and generate a pdf after merging. How do we do that in AEM Forms? Thank you !

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Level 2
March 17, 2022

Hi,

 

I want to use @3214626 AssemblerService

 

assemblerService.invoke(ddxDocument, mapOfDocuments, aoSpec);

but I am getting below error :

java.lang.ClassCastException: class com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl cannot be cast to class com.adobe.aemfd.docmanager.Document (com.sun.org.apache.xerces.internal.dom.DeferredDocumentImpl is in module java.xml of loader 'bootstrap'; com.adobe.aemfd.docmanager.Document is in unnamed module of loader org.apache.felix.framework.BundleWiringImpl$BundleClassLoader @796cec8d)

 Any help here?

 

-Kirti Khatri