It is always fun when you have the chance to look at something you know in theory or have touched upon in the past, and go deeper and create something real. This is what has happened to us recently as we looked at how best to showcase AEM Forms’ dynamic capabilities by integrating with Pega to create a contract that can be then sent to Adobe Sign. We had the chance to build an integration between Pega and AEM to generate a PDF dynamically based upon a payload sent to AEM. AEM would contain multiple Templates, and the payload would determine which ones to use to create a single merged PDF. The merged PDF would then contain the data specified in the payload, as well as adding additional information like the logo, footer and page numbering. Finally, a Signature Block would be included in the merged PDF. Here’s how it all works.