OndrejTrhon / CertificateGenerator4Sheets

Generate PDFs from simple google sheet tables!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CertificateGenerator4Sheets

Generate PDFs from simple google sheet tables!

Made for work from various scraps and help of @randalfien, takes in data from google sheets and generates pdf Built on the fundamentals laid by: https://medium.com/swlh/create-pdf-using-googleapps-script-6d974f3f06c4 Vastly helped by @Randalfien (collaborator in this project yay)

It should run in a Google sheet, made for this use case scenario with unlimited rows but only 5 columns (ignores headers)

Made for creating certificates with name, birth date, occasion description, when it took place and when it was created (you can easily edit those via script editor though and add new columns to track as well):

image

It takes data in each row, puts them into Template google document and then generates PDF.

Installation! Make sure you have:

  1. sheet to run this script on ready (use Tools - Script Editor to copy paste it there, name does not matte)
  2. google docs template with {placeholder} fields (see image below) and its id (in URL)
  3. TEMP Gdrive folder id (in URL)
  4. Target GDrive folder id (in URL)

Replace those inside script and you're all set.

These are important and you should change them to your own: image

Our template in Gdocs looks like this:

image

As you're at Github it all should be pretty clear but perhaps shoot some question and we might answer!

About

Generate PDFs from simple google sheet tables!


Languages

Language:JavaScript 100.0%