Email Google Spreadsheet as PDF Daily

You can setup a cron job in Google Drive using Google Apps Script that will send any Google Spreadsheet or document in the Drive to one or more email addresses at a fixed time.

This function creates a PDF file of the spreadsheet of a specific ID, converts the sheet to a PDF file and sends it via the GmailApp service. You can configure a time-driven trigger in Google script to run this job every day at a fixed time.

The code was originally published by @hisnipes and was enhanced to include the DriveApp and GmailApp service for creating files and sending the PDF attachment respectively.

Update: addOAuthService() is deprecated, see alternate solution.