0% found this document useful (0 votes)
12K views2 pages

Export PDF Spreadsheet Parameters

This document provides instructions for exporting a Google Sheet as different file formats including PDF, Excel, CSV, and HTML. It explains the parameters needed for each export format, such as specifying the sheet ID and range to export. Options for PDF exports include paper size, landscape/portrait orientation, scaling, margins and adding page numbers.

Uploaded by

Hafidz Novianas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12K views2 pages

Export PDF Spreadsheet Parameters

This document provides instructions for exporting a Google Sheet as different file formats including PDF, Excel, CSV, and HTML. It explains the parameters needed for each export format, such as specifying the sheet ID and range to export. Options for PDF exports include paper size, landscape/portrait orientation, scaling, margins and adding page numbers.

Uploaded by

Hafidz Novianas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

https://docs.google.

com/spreadsheets/d/1_klfYqKeWsohXH0Nbtk38nEXA9_7s225zWynmFFfTIA
/export?
gid=925195730&format=pdf&gridlines=false&range=A:C&size=0&horizontal_alignment=CENT
ER

//FORMATS WITH NO ADDITIONAL OPTIONS


//format=xlsx //excel
//format=ods //Open Document Spreadsheet
//format=zip //html zipped

//CSV,TSV OPTIONS***********
//format=csv // comma seperated values
// tsv // tab seperated values
//gid=sheetId // the sheetID you want to export, The first sheet will
be 0. others will have a uniqe ID

// PDF OPTIONS****************
//format=pdf
//size=0,1,2..10 paper size. 0=letter, 1=tabloid, 2=Legal,
3=statement, 4=executive, 5=folio, 6=A3, 7=A4, 8=A5, 9=B4, 10=B5
//fzr=true/false repeat row headers
//portrait=true/false false = landscape
//fitw=true/false fit window or actual size
//gridlines=true/false
//printtitle=true/false
//pagenum=CENTER/UNDEFINED CENTER = show page numbers / UNDEFINED = do not
show
//attachment = true/false dunno? Leave this as true
//gid=sheetId Sheet Id if you want a specific sheet. The first
sheet will be 0. others will have a uniqe ID.
// Leave this off for all sheets.
// EXPORT RANGE OPTIONS FOR PDF
//need all the below to export a range
//gid=sheetId must be included. The first sheet will be 0. others
will have a uniqe ID
//ir=false seems to be always false
//ic=false same as ir
//r1=Start Row number - 1 row 1 would be 0 , row 15 wold be 14
//c1=Start Column number - 1 column 1 would be 0, column 8 would be 7
//r2=End Row number
//c2=End Column number
"export?exportFormat=pdf&" +
"format=pdf&"+
"fmcmd=12&"+
"size=0&"+
"fzr=true&"+
"gid="+sheetid+"&"+
"sheetnames=true&"+
"pagenum=CENTER&"+
"gridlines=true&"+
"portrait=false&"+
"scale=2&"+
"fitw=true&"+
"horizontal_alignment=CENTER&"+
"top_margin=0.10&"+
"bottom_margin=0.10&"+
"left_margin=0.20&"+
"right_margin=0.20&"+
"attachment=true&"+ printRange;

You might also like