Adding a PDF page to PDF using AEM Forms Assemble Service | Community
Skip to main content
Level 2
September 21, 2022
Solved

Adding a PDF page to PDF using AEM Forms Assemble Service

  • September 21, 2022
  • 5 replies
  • 2964 views

I have a use case where I have two PDFs.

1- Static PDF 

2- Dynamic PDF, generated using AEM Form Communication API (https://developer.adobe.com/experience-manager-forms-cloud-service-developer-reference/api/output-sync/).

 

Ask -

I would like to insert static PDF pages after page 2 of Dynamic PDF(generated using communication API) using Document manipulation APIs (https://developer.adobe.com/experience-manager-forms-cloud-service-developer-reference/api/assembler-sync/#section/Introduction).

 

Any sample code or DDX file, if this can be done?

Best answer by Vijay_Katoch

Try this:

<PDF result="doc1.pdf">
<PDF source="doc2.pdf" pages="1-2"/>
<PDF source="doc3.pdf
<PDF source="doc2.pdf" pages="3-5"/>
</PDF>

 

You can use <NoXFA/> tags inside dynamic pdf.

5 replies

Vijay_Katoch
Community Advisor
Vijay_KatochCommunity AdvisorAccepted solution
Community Advisor
September 21, 2022

Try this:

<PDF result="doc1.pdf">
<PDF source="doc2.pdf" pages="1-2"/>
<PDF source="doc3.pdf
<PDF source="doc2.pdf" pages="3-5"/>
</PDF>

 

You can use <NoXFA/> tags inside dynamic pdf.

Level 2
September 21, 2022

That is what I tried and want to know in case there are other alternatives. Thanks

Mayank_Gandhi
Adobe Employee
Adobe Employee
September 28, 2022

@vidhyabhushanbahl what's the current approach? Where are the two pdf placed as of now?

Level 2
September 29, 2022

Hi @mayank_gandhi 

I have done like this.

<PDF result="doc1.pdf">
<PDF source="doc2.pdf" pages="1-2"/>
<PDF source="doc3.pdf
<PDF source="doc2.pdf" pages="3-5"/>
</PDF>

Mayank_Gandhi
Adobe Employee
Adobe Employee
September 29, 2022

@vidhyabhushanbahl that's a very hard-coded way, where do you have the PDF from IC? if you need dynamic use workflows or servlet

October 5, 2024

Welcome to pmawasyojana2025.in your one-stop shop for thorough and trustworthy information about financial insights and government programs. Our goal is to make complicated policies and financial matters understandable to everyone. Washim, a seasoned blogger with a BA degree and over three years of experience in the yojana and finance area, founded our site. 

October 6, 2025

Thanks for sharing this solution, it was helpful! On a related note, while working on financial forms and PDF generation projects, I also came across some tools for LIC policy calculations. If anyone is interested, here’s a free LIC Calculator 

October 7, 2025

I am also facing the same problem. Please solve my problem also. My website LIC Calculator 

Level 1
April 6, 2026

I am also facing the same problem. Please solve my problem also.https://liccalc.com/