Hi,
I am trying to convert DOCX to PDF in Javascript (SharePoint page) calling REST API.
I couldnt fine enough code or information using REST method.
There is excellent help for achieving the same using MS Flow.
But i need a working Javascript to convert and save the PDF.
API versions also different in Swagger compared to the help page.
I answered in the support ticket and will also post the sample here. I attached a sample on C#. It should work if you download RestSharp nuget package (http://restsharp.org/)
You need to create a new API key for Documents and replace value from _token variable to it.