以编程方式下载 Google 文档?

Programmatically download a Google Doc?

Google 文档有一个 "Download as..." 菜单选项,有多种格式可供选择,例如 PDF、文本等

如何以编程方式下载特定的 Google 文档?

来自how to programmatically download a public Google Drive file?

You don't need any Google SDK if you know the link and the file is public. Just use a standard HTTP GET method to download the file.

示例AngularJS:

$http.get('/doc_url').
  then(function(response) {
    // this callback will be called asynchronously
    // when the response is available
  }, function(response) {
    // called asynchronously if an error occurs
    // or server returns response with an error status.
  });