Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

AEM Forms as a Cloud Service - Communications document generation synchronous APIs - reference path of your Experience Manager Repository

Avatar

Level 3

Hi Guys,

 

Try to use AEM Forms as a Cloud Service - Communications document generation synchronous APIs to generate PDF(DOR) and according to documentation it supports template path as "reference path of your Experience Manager Repository".

 

Wondering what will it be like 

- content/dam/formsanddocuments/XSDBasedForm.xdp or

- crx://content/dam/formsanddocuments/XSDBasedForm.xdp

 

BTW both are not working. Any help will be much appericated?

2 Replies

Avatar

Level 3

Thanks for promtly reply.

 

I want to use try this 

                        builder.addBinaryBody("data", dataXml.getBytes();
		builder.addTextBody("template","crx://content/dam/formsanddocuments/XSDBasedForm.xdp",
				ContentType.TEXT_PLAIN);

instead of 

                        builder.addBinaryBody("data", files[i]);
                        builder.addBinaryBody("template", xdpTemplate);

 Any clue if this is correct? API response is 500.