最新 Google 脚本错误 - 从 text/html 到 application/pdf 的转换失败
Newest Google Script error - Conversion from text/html to application/pdf failed
亲爱的
我曾经写过 google 脚本如下:
var pdfHTML = '<html><head></head><body>test</body></html>';
var blob = HtmlService.createHtmlOutput(pdfHTML);
var pdfName = 'test.pdf';
blob = blob.getBlob();
var pdf = blob.getAs("application/pdf");
DriveApp.createFile(pdf).setName(pdfName).getAs(MimeType.PDF);
能用,已经用了3年多了,到8月9日还在用,但是从8月10日开始,突然报错'Conversion from text/html to application/pdf failed.'。我想知道服务器中的某些库已被更改??我检查了很多论文表格 Google 但没有找到它的任何消息。有人告诉我发生了什么事吗??
这是一个已报告的错误
Exception: Conversion from text/html to application/pdf failed
一定要去“加注星标”,让 Google 知道它影响了你。
亲爱的
我曾经写过 google 脚本如下:
var pdfHTML = '<html><head></head><body>test</body></html>';
var blob = HtmlService.createHtmlOutput(pdfHTML);
var pdfName = 'test.pdf';
blob = blob.getBlob();
var pdf = blob.getAs("application/pdf");
DriveApp.createFile(pdf).setName(pdfName).getAs(MimeType.PDF);
能用,已经用了3年多了,到8月9日还在用,但是从8月10日开始,突然报错'Conversion from text/html to application/pdf failed.'。我想知道服务器中的某些库已被更改??我检查了很多论文表格 Google 但没有找到它的任何消息。有人告诉我发生了什么事吗??
这是一个已报告的错误
Exception: Conversion from text/html to application/pdf failed
一定要去“加注星标”,让 Google 知道它影响了你。