Google-apps-script – Automatically create a calendar document using Google Drive and Google Apps Script

google docsgoogle-apps-scriptgoogle-drive

Is it possible to use Google Apps Script to 'automatically' create a calendar document in Google Drive with the following document features.

  • Traditional calendar table
  • Accurate month and year heading
  • Dates accurately placed in the correct day columns

See example

I know Google Apps Script can automatically create documents and add content. I'm just not sure it can "automatically" and "accurately" place dates in the correct locations. I don't want to start down the path if the goal I seek isn't an option.

Best Answer

Yes, it's possible.

On way is to place text markers as it's done on mail merge scripts.
Another way is to create the table programmatically by using Class Table