API to convert document format

I am looking for a RESTful web service to which I can send a document (doc, docx, xls, xlsx, ppt, pptx and tiff at least) for conversion to pdf and swf.

The reason I need swf in addition to pfd is that I can display the document in a browser using a flash-based document viewer such as FlexPaper .

Basically I want transloadit.com for documents.

One option is to use the Scribd API, download pdf, and use swftools to convert PDF to swf. However, I'm interested in alternatives.

+4
source share
4 answers

doxument.com may be what you are looking for. They offer some kind of REST API. However, I'm not sure about the formats.

+2
source

I am developing http://webservices.io , which is in beta and offers document conversion through the REST API.

While it also doesn’t complete all the conversions you request, it has docx and xlsx support. See matrix with supported conversions

+1
source

Recommended library best suited http://www.aspose.com/ Use it to create your own service

0
source

Although this is an old question, I just want to share another solution for future reference. REST API GroupDocs.Conversion Cloud is another conversion option between documents and images over 65+, including all Microsoft Office and OpenDocument file formats, PDF, HTML, CAD documents, bitmap images, and more.

Example cURL code:

### Retrieve access token ### TODO: Get your AppSID and AppKey at https://dashboard.groupdocs.cloud (free registration is required). curl --request POST https://api.groupdocs.cloud/connect/token --header "Content-Type: application/x-www-form-urlencoded" --data "grant_type=client_credentials&client_id=[APP_SID]&client_secret=[APP_KEY]" ### Convert and Add Watermark curl --request POST "https://api.groupdocs.cloud/v2.0/conversion" --header "authorization: Bearer [ACCESS_TOKEN]" --header "accept: application/json" --header "Content-Type: application/json" --data "{ "FilePath": "test_doc.docx", "Format": "pdf", "ConvertOptions": { "FromPage": 1, "PagesCount": 1, "WatermarkOptions": { "text": "Watermark" } }, "OutputPath": "Output"}" 

I work with Aspose as an evangelist developer.

0
source

Source: https://habr.com/ru/post/1341067/


All Articles