Communications document generation - with URL | Community
Skip to main content
July 15, 2022

Communications document generation - with URL

  • July 15, 2022
  • 1 reply
  • 1117 views

Trying to generate PDF using "Communications document generation" API. Doc URL - https://adobedocs.github.io/experience-manager-forms-cloud-service-developer-reference/api/sync/#tag/Communications-document-generation-synchronous-APIs

 

Sample code suggest we can use URL. When I tried with my xdp on Azure blob with readonly public access and content type as plain text then PDF generation fails with "Error 400 The specified template is not valid. Specify a valid template and retry." 

 

// You can also pass a URL for the template and set the content type to text/plain builder.addTextBody("template", "https://forms.enablementadobe.com/content/ocrfiles/address.xdp",ContentType.TEXT_PLAIN);

 

 Any clue? why?

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

1 reply

Adobe Employee
July 15, 2022

Can you check if you are able to generate document by passing the template residing on your local file system as shown in the sample code?

July 15, 2022

Sample code using local files working. But not using URL as described in the code and documentation.

 

Thanks

Adobe Employee
July 15, 2022