GithubHelp home page GithubHelp logo

simonsprofile / exporting-google-sheets-pdfs Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 1.0 12 KB

An example of how to export a PDF from a Google Sheet with Google App Script. Including various print parameters in the URL string.

JavaScript 100.00%
google-sheets exporting-pdfs url-encoding google-app-scripts javascript

exporting-google-sheets-pdfs's People

Contributors

simonsprofile avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

rp70

exporting-google-sheets-pdfs's Issues

fzr and fzc

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).

Fit to Width/Height/Page

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.