AEM Forms as a Cloud Service - Communications document generation synchronous APIs - reference path of your Experience Manager Repository | Community
Skip to main content
Level 2
July 15, 2022

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

  • July 15, 2022
  • 1 reply
  • 701 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Level 2
July 15, 2022

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.