使用GAS克服Google Drive API Drive.Files.insert()方法的最大文件大小限制 [英] Using GAS to overcome the max file size limit for Google Drive API Drive.Files.insert() method

查看:207
本文介绍了使用GAS克服Google Drive API Drive.Files.insert()方法的最大文件大小限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道如何使用Google Apps脚本(GAS)来克服最大文件大小限制,从而防止 .pdfToText()函数 @Mogsdad 在这里介绍是否转换PDF,比如说,每次多于10页?

Drive.Files.insert()方法固有的记录在这里。此方法出现在 pdfToText.js 文件的第58行位于此处

解决方案

来自评论的摘要:

每@mulliweht


检查出这个工具 ...我今天在10页有同样的问题(甚至在发现这篇文章之前在@ Mogsdad的git上发表了评论)......上面的API解决了我的问题,并且很容易被URLFetchApp调用Google Apps脚本。



Does anybody have a clue how to use Google Apps Script (GAS) to overcome the max file size limit preventing the .pdfToText() function @Mogsdad introduced here from converting a PDF of, say, more that 10 pages at a time?

The limitation is inherent to the Drive.Files.insert() method documented here. This method occurs in line 58 of the pdfToText.js file located here.

解决方案

Summary from comments:

Per @mulliweht

Check out this tool... I was having the same problem today at 10 pages (even commented on @Mogsdad's git about it before finding this post)... The API above solved my problem and is easily called by URLFetchApp in Google Apps Script.

这篇关于使用GAS克服Google Drive API Drive.Files.insert()方法的最大文件大小限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆