simonsprofile / exporting-google-sheets-pdfs Goto Github PK
View Code? Open in Web Editor NEWAn example of how to export a PDF from a Google Sheet with Google App Script. Including various print parameters in the URL string.
An example of how to export a PDF from a Google Sheet with Google App Script. Including various print parameters in the URL string.
Just writing as I used this to create a PDF but I needed frozen rows and columns to repeat themselves.
Turns out, fzr and fzc does exactly that. When set to true, fzr and fzc make frozen rows and columns repeat on each page respectively.
Also, if you want to extend this guide, it is also possible to set a selection using the parameters 'c1', 'r1', 'c2' and 'r2' to specify, in integers starting from 0, the column number and row number from where to start (c1 and r1) the selection to where to end the selection (c2 and r2).
I found the route parameters for Fit to Height/Fit to Page: scale
. It takes an Integer, and the options seem to map to the dropdown on the print dialog. Setting scale to 3 does Fit to Height, which is all I needed for my project. I haven't tested what happens if both fitw
and scale
are included though, nor do I know how to set or configure the Custom Scale.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.