I have asked this question on https://community.adobe.com/ and have not received an answer. If I do, I will include the response here.
I am able to create a pdf using the basic approach outlined by adobe at https://developer.adobe.com/document-services/docs/overview/document-generation-api/
Ideally, I don't want to have to send the base docx word document across in the api call each time I generate a new pdf. I would rather host the docx which can be retrieved at document generation time. One approach would be a reference url to a docx hosted on acrobat.adobe.com. At the moment I have to send the docx as well as the json data which seems inefficient.
I am using https://cpf-ue1.adobe.io/ops/:create
"cpf:inputs":{ "documentIn":{ "dc:format":"application/vnd.openxmlformats-officedocument.wordprocessingml.document", "cpf:location":"InputFile0" },
I guess if it can't be done, then that's okay, I just would like to know so I can implement accordingly.
thank you
the API endpoint you mentioned is deprecated and we have a new set of REST endpoints that support that. You can find the documentation for our new REST APIs here: https://developer.adobe.com/document-services/docs/apis/. You can find an introductory blog post here: https://blog.developer.adobe.com/announcing-the-new-adobe-document-services-rest-apis-8d85951176cf
Now, to your specific use case of re-using a Word doc, you can do that for up to 24 hours with one asset. Basically you upload the Word doc and then use the asset ID for multiple document generation calls.
I describe this process in detail here, https://medium.com/adobetech/multiple-performant-operations-with-the-new-adobe-document-services-rest-apis-7e56bec336af, but since SO doesn't like linking to existing stuff like that, I'll replicate it here a bit. :)
So basically, after the authenticating, you:
application/vnd.openxmlformats-officedocument.wordprocessingml.document
.If any of this doesn't make sense, just let me know.