Skip to main content
Participant
April 27, 2022
Question

Document Generation API issue

  • April 27, 2022
  • 1 reply
  • 1310 views

When running the document generation API to generate a PDF, we need to pass:

  • a document template, 
  • a JSON structure with the metadata, 
  • and credentials.

 

We currently retrieve the template from a document management repository using an API. The API response contains the document template as a character string representing the binary data of the word document.

 

How can we use this response representing the template file, and pass that to the Adobe Document generation API? Must we save this template to a physical drive before calling the Adobe API?

 

Any example welcome.


Regards,
Laurent LANDREAU
Integration Architect, Brisbane

This topic has been closed for replies.

1 reply

Raymond Camden
Community Manager
Community Manager
April 27, 2022

You can either save it to the file system, or use a stream. Here's a Node specific doc link: https://opensource.adobe.com/pdfservices-node-sdk-samples/apidocs/latest/FileRef.html

Participant
May 4, 2022

We are trying to upload documents in Adobe but we have the following error when trying to load a multi-part file as a stream:

{"requestId":"eetdkUFpeI2XLTAW3v4y9vI4DXMXTt4b","type":"Internal Server Error","title":"There was an error processing your request.","status":500,"report":"{\"error_code\":\"INTERNAL_SERVER_ERROR\"}"}"

 

Is there any error log that is accessible that would provide additional explanation on what the error is?

 

Regards,
Laurent LANDREAU
Integration Architect, Brisbane

Raymond Camden
Community Manager
Community Manager
May 4, 2022

Honestly it's hard to know without more code. Could you share a bit about how you are doing it?