PDF Generation dependency error | Community
Skip to main content
Level 5
July 2, 2025
Solved

PDF Generation dependency error

  • July 2, 2025
  • 2 replies
  • 659 views
I'm using the below imports on AEM aa CS. So i have added the respective dependency as well. Core build works fine if i upload core jar to aem console getting the error in import packages (added a ss).
IMPORTS : 
import com.adobe.aemfd.docmanager.Document;
import com.adobe.fd.ccm.channels.print.api.service.PrintChannelService;
import com.adobe.fd.output.api.*;
Dependency : 
<dependency>
<groupId>com.adobe.aemfd</groupId>
<artifactId>aemfd-client-sdk</artifactId>
<version>6.0.1244</version>
<scope>provided</scope>
</dependency>
AEM console Error:

Full Build Error :

I tried to change the start level while uploading the jar, still fails. Any suggestions welcomes.

Thanks in advance.

Best answer by aravindS

I have used this api to generate pdf successfully using xdp template and xml data.

POST call

https://YOUR_UNIQUE_SERVER.adobeaemcloud.com/adobe/forms/doc/v1/generatePDFOutput

req. parameters - in body add required files as a input with the name of template and data. Use Basic auth / Bearer it works fine on both authentication.

 

Thanks.

2 replies

Adobe Employee
July 3, 2025

Hi @aravinds , 

 

What you are using is the AEM Forms SDK version of 6.5 but compiling and using the code on AEM Forms Cloud Service instance. This is incorrect and will never work. Interactive Communications on 6.5 is not available in the same form in AEM Forms CS. We have just released in early access Interactive Communications on Forms CS. For getting access, please send a mail to 

aem-forms-ea@adobe.com with details of your IMS Organisation for Forms CS and license details. 

 

Regards, 

Sufyan

aravindSAuthor
Level 5
July 3, 2025

Hi @sharoon23 ,

Yes i know that using the 6.5 api, can you suggest any way to generate the pdf using the xdp and xml data. Thanks

aravindSAuthorAccepted solution
Level 5
July 10, 2025

I have used this api to generate pdf successfully using xdp template and xml data.

POST call

https://YOUR_UNIQUE_SERVER.adobeaemcloud.com/adobe/forms/doc/v1/generatePDFOutput

req. parameters - in body add required files as a input with the name of template and data. Use Basic auth / Bearer it works fine on both authentication.

 

Thanks.