4

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

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

I basically want transloadit.com for documents.

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

Sai Perchard
  • 853
  • 1
  • 10
  • 12
  • Such a web service would be worth a bit of $$$. I'm not aware of any that do what your saying, but to build one yourself would be quite an endeavor (if you didn't want to pay for a fancy API to do the conversions for you). – Brandon Boone Mar 03 '11 at 01:50
  • It certainly would be an endeavour - this is why I am looking for an existing service. I am currently using Scribd but would like a platform that offers a little more flexibility/specifically targets developers. – Sai Perchard Mar 03 '11 at 02:01

4 Answers4

2

doxument.com might be what you looking for. They do offer some kind of REST API. I'm not sure about the formats though.

Anonymous
  • 21
  • 1
  • Almost what I need. Doesn't appear to support docx or xlsx (http://code.google.com/p/doxument/wiki/Documentation?tm=6#Formats). Also doesn't export to swf. Upvoted though, as good/relevant. – Sai Perchard May 23 '12 at 01:38
1

I am developing on http://webservices.io which is in beta and offers document conversion via a REST API.

While it also doesn't do all the conversions you are asking for, it does have docx and xlsx support. See matrix with supported conversions

rintcius
  • 3,283
  • 2
  • 19
  • 16
  • 1
    You may be able to add another check to that matrix pretty cheaply using [wkhtmltopdf](http://code.google.com/p/wkhtmltopdf/). GPL, it's worked satisfactorily in a few personal projects. – Johnny Brown Dec 06 '12 at 19:00
0

Aspose library is best of the best http://www.aspose.com/ Use it for create your own service

Boris Gappov
  • 2,483
  • 18
  • 23
0

Although it's an old question, however just want to share another solution for future reference. GroupDocs.Conversion Cloud REST API is another option to convert back and forth between over 65+ types of documents and images, including all Microsoft Office and OpenDocument file formats, PDF documents, HTML, CAD, raster images and much more.

cURL sample 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 developer evangelist.

Tilal Ahmad
  • 940
  • 5
  • 9