Skip to content

SheetExporter is a free Google Apps Script library that automates spreadsheet exports to PDF, Excel, and CSV.

License

spreadsheetdev/SheetExporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

SheetExporter

A Google Apps Script library for exporting Google Sheets to PDF, Excel, CSV, and other formats.

Features

  • Export to PDF, Excel (XLSX), CSV, TSV, ODS, and ZIP
  • Fluent chainable API
  • Control page size, orientation, margins, and scaling
  • Export specific sheets or ranges
  • Preset configurations for common use cases

Quick Start

function exportToPDF() {
  const ss = SpreadsheetApp.getActiveSpreadsheet();
  const blob = new SheetExporter(ss)
    .setFormat('pdf')
    .setOrientation('landscape')
    .setPageSize('letter')
    .setFileName('Weekly Report')
    .exportAsBlob();

  DriveApp.createFile(blob);
}

Documentation

For the complete 34-page guide with 25+ examples, best practices, and advanced usage:

https://spreadsheet.dev/sheet-exporter

License

MIT License - Copyright (c) 2025 Spreadsheet Dev

About

SheetExporter is a free Google Apps Script library that automates spreadsheet exports to PDF, Excel, and CSV.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published