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
  • 12 replies
  • 2898 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.

12 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

February 21, 2024

I am also facing the same problem please solve my problem also my website jobsrajasthan.com

April 6, 2024

Job Status (NaukriStatus.co.in) – India's top education website. Our mission is to guide Indian youth in higher education and provide best content to develop career. We support students through subject-specific articles, expert advice, and search management.

April 12, 2024

I'm encountering a similar issue. Could you please address my concern as well? My website is laptopyojana.in.

May 13, 2024

At YojanaON, we are passionate about bridging the gap between government policies and the citizens they aim to serve. Our mission is to empower every Indian with the knowledge and resources they need to access and benefit from various REET Vacancy, programs, pm fasal bima yojana and initiatives.

July 25, 2024

United Specialty Insurance Company is a key player in the insurance industry, renowned for its specialized insurance solutions that cater to unique and high-risk scenarios. This guide provides an in-depth look into the company’s background, insurance offerings, claims process, and key features, assisting you in making informed insurance decisions.

And

Navigating the intricacies of insurance claims can be daunting, but understanding the provisions in place can make the process much smoother. This guide will help you understand what “provision for insurance claim” entails, ensuring you are well-prepared in the event of needing to file a claim.

July 25, 2024

But This Is Also Good 

 

Comprehensive Guide to Ohio Security Insurance Company

Ohio Security Insurance Company, a reputable subsidiary of Liberty Mutual, offers a wide range of insurance products tailored to meet the needs of businesses and individuals.

And 

When it comes to safeguarding your property from fire damage, The Standard Fire Insurance Company stands out as a leading provider in the insurance industry. 

August 1, 2024

Knowing how to unlink Citibank credit card can be essential for managing your finances securely and efficiently. Whether you need to remove a card due to security concerns, simplify your credit management, or resolve specific issues, this guide will walk you through the process. Follow these steps to unlink your Citibank credit card with ease.

August 15, 2024

Networthsy is the total value of an individual's or entity's assets minus their liabilities. It represents financial health and is calculated by adding up all assets (cash, real estate, investments, etc.) and subtracting all debts (mortgages, loans, credit card balances, etc.). A positive net worth indicates that assets exceed liabilities, reflecting financial stability, while a negative net worth means more debt than assets. It's a crucial metric for assessing overall financial well-being. SSO ID

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.

<a href="https://pmawasyojana2025.in/category/sarkari-yojana/">yojana for all </a> 

Washim, a seasoned blogger with a BA degree and over three years of experience in the yojana and finance area, founded our site.