Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

Error in Import Packages com.adobe.aemfd.docmanager,version=[1.9,2) -- Cannot be resolved

Avatar

Level 6

I'm using AEM aa CS, I need to generate a PDF using xdp template and xml data. So i used Output service api as per the below link.

Generate PDF documents using output service | Adobe Experience Manager

I'm getting the import error while uploading the bundle in my local AEM aa CS.

aravindS_0-1752044329866.png

I added the following dependency.

<dependency>
<groupId>com.adobe.aemfd</groupId>
<artifactId>aemfd-client-sdk</artifactId>
<version>6.0.1328</version>
</dependency>
Please let me know if i missed anything, thanks.
1 Accepted Solution

Avatar

Correct answer by
Level 6

Thanks everyone for your reply.

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.

aravindS_0-1752154440159.png

Thanks.

 

View solution in original post

5 Replies

Avatar

Level 3

Hello @aravindS 

 

OutputService and FormsService Java APIs (such as com.adobe.fd.output.api.OutputService) are for on-premise/AEM 6.5 environments.
In AEMaaCS, these APIs are not considered public.
Therefore, the aemfd-client-sdk dependency is not supported for custom code on AEMaaCS, which is likely why your bundle is failing to resolve imports.

In Cloud Service, document generation (PDF with XDP + XML) should be performed via the Communications HTTP APIs [0]

This is a REST API for PDF generation.

This approach will work both for local SDK and deployed Cloud Service environments, and avoids Java API wiring entirely.

 

Thanks,

Rahul Pandey

 

[0] https://developer.adobe.com/experience-manager-forms-cloud-service-developer-reference/references/ou...

Avatar

Level 6

Hi @rahulpandey27 ,

Thanks for your reply, can you please check this
https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/forms/forms-cs-out...

we can use this api in AEM aa CS as well.

aravindS_0-1752046661277.png

If you have any sample code or link for this using Communications HTTP APIs [0] please share that would be helpful.

Avatar

Employee

@aravindS , 

You can use these APIs in cloud service as well. The SDK you are using currently is for 6.5 and hence, the issue. Please use the SDK at https://mvnrepository.com/artifact/com.adobe.aem/aem-forms-sdk-api. Use the correct version aligned with the version of Forms present on your cloud instance. This is the latest SDK version https://mvnrepository.com/artifact/com.adobe.aem/aem-forms-sdk-api/2025.06.11.02-250500. You can find the Forms version by clicking 'i' icon in forms manager console. 

 

Regards, 

Sufyan

 

 

Avatar

Level 6

Hi @sharoon ,

I have used the latest SDK and forms add on as well, got the same issue.

Avatar

Correct answer by
Level 6

Thanks everyone for your reply.

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.

aravindS_0-1752154440159.png

Thanks.