文档格式转换API
我正在寻找一个 RESTful Web 服务,我可以向该服务发送文档(至少是 doc、docx、xls、xlsx、ppt、pptx 和 tiff)以转换为 pdf 和 swf。
除了 pfd 之外,我还需要 swf 的原因是这样我可以使用基于 flash 的文档查看器(例如 FlexPaper。
我基本上想要 transloadit.com 来获取文档。
一种选择是使用 Scribd API,下载 pdf,然后使用 swftools 将 pdf 转换为swf。不过我对替代方案很感兴趣。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

发布评论
评论(4)
虽然这是一个老问题,但只是想分享另一个解决方案以供将来参考。
GroupDocs.Conversion Cloud REST API 是另一种在超过 65 种以上类型的文档之间来回转换的选项图像,包括所有 Microsoft Office 和 OpenDocument 文件格式、PDF 文档、HTML、CAD、光栅图像等。
cURL 示例代码:
### 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"}"
我作为开发人员传播者与 Aspose 合作。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
doxument.com 可能就是您要找的。他们确实提供某种 REST API。但我不确定格式。
doxument.com might be what you looking for. They do offer some kind of REST API. I'm not sure about the formats though.