Google Apps Script to copy table from spreadsheet to document

Copies a named range from the spreadsheet containing the script to a
new document. Sets the header row font of the copied table to bold type.