Search code examples
htmlpdfgoogle-drive-apiexport-to-pdf

HTML2PDF using Google Drive API


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


Solution

  • 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