使用Google Drive API的HTML2PDF [英] HTML2PDF using Google Drive API

查看:107
本文介绍了使用Google Drive API的HTML2PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用Google Drive API将HTML文件上传并转换为PDF,而无需用户互动

Is it possible to upload and convert an HTML file to PDF using Google Drive API without user interaction?

推荐答案

是的,有两个请求。您可以将文件作为Google文档导入,然后将其导出为PDF。使用Drive API。

Yes, it is, with two requests. You can import the file as a Google Docs, then export it to PDF. Using the Drive API.

https:// developers.google.com/drive/v2/reference/files/insert
https ://developers.google.com/drive/v2/reference/files/get

这篇关于使用Google Drive API的HTML2PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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