Online Document Conversion API

Online document conversion API, providing word, excel, ppt and other online files to pdf, png, etc.

 

Online Document Conversion API Documentation: https://www.juhe.cn/docs/api/id/259

 

Interface address: http://v.juhe.cn/fileconvert/query
Supported format: json
Request method: http get/post
Request example: http://v.juhe.cn/fileconvert/query
Interface Notes: Convert to the corresponding document format by submitting the source file url to be converted
Request parameter description: Name type required description
  key string Yes the key you applied for
  url string Yes The online url address of the document to be converted
  type int no Conversion type, default 1 (1: office to pdf, 2: office to swf, 3: office to png, 4: office to pdf split page, 5: pdf to swf, 6: pdf to png, 7: word to txt ), office supports: word, excel, ppt three document formats
Return parameter description: Name type description
  error_code int return code
  reason string Back to Instructions
  sourceurl string Submitted file url
  mes_path string Converted file download address (The converted file is valid for 10 minutes, please download as soon as possible)

 

JSON return example:

 

{
    "reason": "Conversion successful",
    "result": {
        "sourceurl": "http://juheimg.oss-cn-hangzhou.aliyuncs.com/docs/juhe.doc",
        "mes_path": "http://office.edu-paas.com/Resources/Anonymous/6059d8af-82d0-44f5-9c97-629dd26af4ff.pdf"
    },
    "error_code": 0
}

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326361768&siteId=291194637