The DriveApp class

This class allows you to create, search, and modify files and folders in your Drive.

For reference documentation on the DriveApp class, refer to the website: https://developers.google.com/apps-script/reference/drive/drive-app?hl=en.

Creating customized PDF files

Imagine that you need to create customized PDF files from the Sheet or external data. We can create PDF files from the HTML template. You simply need to format column headers and put some sample data in a new Sheet (AddressBook) as shown in the following screenshot:

Creating customized PDF files

Create the createPdfs function in the Code.gs file as listed here:

function createPdfs(){ // 0 based column numbers ...

Get Learning Google Apps Script now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.