How to convert PDF/RTF to Microsoft Word document with Aspose.Words REST API?

Hi


we have a set of use cases that we are reviewing aspose word cloud for.

We accept as input: doc, docx, pdf, rtf,
For each input type we want to:

1) add a watermark
2) convert any input (doc, docx, rtf, pdf) to all other types (doc, docx, rtf, pdf)

is this supported in the word api or would we also need pdf api? If the latter would it be better to simply buy license for total cloud instead as I think this means we can use all APIs right?

thanks
S

Hi,

Aspose.Words for Cloud supports DOC, DOCX and RTF formats as input and you can add watermark and convert to DOC, DOCX, RTF and PDF .

For PDF, you will have to use Aspose.Pdf for Cloud to add watermark and convert to DOC, DOCX or PDF format . PDF to RTF is not supported directly however you can convert PDF to DOCX and then use Aspose.Words to convert DOCX to RTF.

Best Regards,

@shaunybee

I would like to share an update. Now we can convert PDF/RTF to Word document using Aspose.Words Cloud API.

@shaunybee

In addition to the above reply, you can also convert DOC,DOCX, RTF and PDF using Aspose.Words Cloud without cloud storage.

#Get JWT access token
curl -v "https://api.aspose.cloud/connect/token" \
-X POST \
-d "grant_type=client_credentials&client_id=xxxx&client_secret=xxxx" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json"

# cURL example to convert MS Word Document to PDF
curl -v "https://api.aspose.cloud/v4.0/words/convert?format=pdf" \
-X PUT \
-F document=@TableDocument.doc \
-H "Content-Type: multipart/form-data" \
-H "Accept: multipart/form-data" \
-H "Authorization: Bearer <jwt token>" \
-o TableDocument.pdf