Giter Club home page Giter Club logo

tsdynamicurls's Introduction

TSDynamicUrls

If you enjoy my Google Workspace Apps Script work, please consider buying me a cup of coffee!


TSDynamicUrls is an Apps Script powered dynamic URL generator for Google Docs, Sheets, Slides, Drawings & Forms which assists document creators and consumers in leveraging the URL power of Google documents. ๐Ÿ’ฅ

See the following blog posts for more information and getting started guides:

TSDynamicUrls is intended for use within a G Suite for Business or G Suite for Education domain.



Supported Formats & Options

TSDynamicUrls supports the Google document files types/formats and Google Sheets PDF options outlined in the tables below.


TSDynamicUrls Supported Google Document File Types & Formats - *See below for more on sharing Google Forms.

FORMAT DOCS SHEETS SLIDES DRAWINGS FORMS
Preview โœ”๏ธ โœ”๏ธ โœ”๏ธ โœ”๏ธ โœ”๏ธ
Copy โœ”๏ธ โœ”๏ธ โœ”๏ธ โœ”๏ธ โœ”๏ธ *
Copy w/ Comments โœ”๏ธ โœ”๏ธ โœ”๏ธ โœ”๏ธ โž–
Template โœ”๏ธ โœ”๏ธ โœ”๏ธ โœ”๏ธ โœ”๏ธ *
MobileBasic โœ”๏ธ โž– โž– โž– โž–
PDF (Portable Document Format) โœ”๏ธ โœ”๏ธ โœ”๏ธ โœ”๏ธ โž–
JPEG (Joint Photographic Experts Group Image) โž– โž– โž– โœ”๏ธ โž–
PNG (Portable Graphics Format Image) โž– โž– โž– โœ”๏ธ โž–
PNG (Portable Graphics Format Image) - Individual Slide Only โž– โž– โœ”๏ธ โž– โž–
SVG (Scalable Vector Graphics Image) โž– โž– โž– โœ”๏ธ โž–
RTF (Rich Text Format) โœ”๏ธ โž– โž– โž– โž–
TXT (Plain Text) โœ”๏ธ โž– โœ”๏ธ โž– โž–
HTML (Web Page, Zipped) โœ”๏ธ โœ”๏ธ โž– โž– โž–
DOCX (Microsoft Word) โœ”๏ธ โž– โž– โž– โž–
ODT (OpenDocument Document) โœ”๏ธ โž– โž– โž– โž–
EPUB (EPUB Publication) โœ”๏ธ โž– โž– โž– โž–
XLSX (Microsoft Excel) โž– โœ”๏ธ โž– โž– โž–
ODS (OpenDocument Spreadsheet) โž– โœ”๏ธ โž– โž– โž–
CSV (Comma-separated values) - Individual Sheet Only โž– โœ”๏ธ โž– โž– โž–
TSV (Tab-separated values) - Individual Sheet Only โž– โœ”๏ธ โž– โž– โž–
PPTX (Microsoft PowerPoint) โž– โž– โœ”๏ธ โž– โž–
ODP (OpenDocument Presentation) โž– โž– โœ”๏ธ โž– โž–

TSDynamicUrls Supported Google Sheets PDF Options

GOOGLE SHEETS PDF OPTIONS
Size (Letter, Tabloid, Legal, Statement, Executive, Folio, A3, A4, A5, B4, B5) โœ”๏ธ
Orientation (Portrait, Landscape) โœ”๏ธ
Scale (Normal 100%, Fit to Width, Fit to Height, Fit to Page) โœ”๏ธ
Page Order (Down, then over; Over, then down) โœ”๏ธ
Horizontal Alignment (Left, Center, Right) โœ”๏ธ
Vertical Alignment (Top, Middle, Bottom) โœ”๏ธ
Repeat Frozen Rows โœ”๏ธ
Repeat Frozen Columns โœ”๏ธ
Show Gridlines โœ”๏ธ
Show Spreadsheet Title โœ”๏ธ
Show Sheet Names โœ”๏ธ
Show Page Numbers โœ”๏ธ
Show Notes โœ”๏ธ
Custom Margins (Top, Bottom, Left, Right) โœ”๏ธ
All Sheets / Single Sheet โœ”๏ธ
Named Range (Single Sheet) โœ”๏ธ
Custom Range (Single Sheet) โœ”๏ธ


Share Google Forms With View Only Access

See this guide for more on sharing Google Forms. Script below.


function share() {
 
    var formId = "<FORM FILE ID>";
    var file = DriveApp.getFileById(formId);

    file.setSharing(
      DriveApp.Access.ANYONE_WITH_LINK, 
      DriveApp.Permission.VIEW
    );
  
}

Change DriveApp.Access to desired access level.

ACCESS LEVEL DESCRIPTION
ANYONE Anyone on the Internet can find and access. No sign-in required.
ANYONE_WITH_LINK Anyone who has the link can access it. No sign-in required.
DOMAIN People in your G Suite domain can find and access it. Sign-in required.
DOMAIN_WITH_LINK People in your G Suite domain who have the link can access it. Sign-in required.
PRIVATE Only people explicitly granted permission can access. Sign-in required.


FAQ

How do I ask general questions about TSDynamicUrls? For general questions, submit an issue through the issue tracker.

How do I submit bug reports for TSDynamicUrls For bug reports, fork this repository, create a test which demonstrates the problem following the procedures outlined in the "Tests" section below and submit a pull request. If possible, please submit a solution along with the pull request.

Tests

TSDynamicUrls for Google Forms unit tests can be found in form/tests folder.

To perform TSDynamicUrls for Google Forms unit tests:

  • Add the appropriate test file from the form/tests folder to the TSDynamicUrls form script editor. IMPORTANT: Each test is configured as a web app so only install one test at a time to avoid conflicts.

  • Install QUnit for Google Apps Script by adding the project library (see the project documentation for proper install instructions).

  • Deploy the script as a web app (execute script as self).

  • Set the desired unit test configuration entry in the testConfig object to true (see each file for information on where to modify these values to enable tests). NOTE: Some tests can take longer to run so best to run them individually.

  • Access the deployed web app for test results.


Change Log

  • 2021-03-19 - Added /mobilebasic option for Google Docs. To test:
    • Make a copy of this Google Form.
    • Add a MobileBasic option to the Google Docs URL Modification Type? section.
    • Replace the Code.gs in the copied form.

License

TSDynamicUrls License

ยฉ Laura Taylor (github.com/techstreams). Licensed under an MIT license.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

tsdynamicurls's People

Contributors

techstreams avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

thegreatgaspy

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.