Code Monkey home page Code Monkey logo

serverless-web-form-to-pdf's Introduction

Serverless-Web-Form-to-PDF

Web app that converts online form to a presentation-ready PDF using Google Apps Script, PDF Layer API, Zoho CRM API, Axios, Google Maps API, Google Static Maps API, and Google Geocoding API. :octocat:


DOCUMENTATION


Reference documentation resource links below for more details.


Technologies Used ⚡ Links
Google Apps Script
GAS is a scripting language based on JavaScript, a living platform in the cloud.
Get Started
PDF Layer - High quality and highly customizable HTML to PDF conversion API. It can be quite cumbersome to style PDF.
TIP: Incline-css works best for styling final PDF document. Thank me later.
Documentation
Zoho CRM API
Zoho is an online customer relationship manager platform. If Salesforce and Google had a baby, it's prodigy would be Zoho. The webpage in this web app is pre-populated with data from our Zoho CRM via it's RESTful API.
Documentation
Axios
A promise-based HTTP client that works both in the browser and in a node.js environment. It basically provides a single API for dealing with XMLHttpRequests and node’s http interface. Besides that, it wraps the requests using a polyfill for ES6 new’s promise syntax.
How-to Article
Google Maps API
Straight-forward Javascript API for map generation.
Documentation
Google Static Maps API
Implement maps as images in your apps and sites. When using PDF Layer and other HTML to PDF converters, you must provide an image-based map. The conversion API doesn't recognize maps generated using the standard Google Maps API. In this web app we initiated this Static API call when the user clicks to convert the webform to a PDF. The returned object is injected with raw HTML to the page and thereby printed to the final PDF.
Documentation
Google Geocoding API
Convert street addresses into geographic coordinates (like latitude and longitude) which are required for Google Map generation. In our example web app, we use data from the address, city, state, and zipcode form fields to generate our map. Necessary since we record only street address and not exact geographic coordinates in our CRM.
Documentation

Screenshots of web app and convert PDF:


Top of webform screenshot

Bottom of webform screenshot


Bottom of webform screenshot



:octocat: We love open source software | Hire us for your next project | makecodenotwar.co

serverless-web-form-to-pdf's People

Contributors

hkdeven avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jonnyberry

serverless-web-form-to-pdf's Issues

webpage.html broken

Hey @hkdeven wanting to use this, but the code isn't working.

Title tag wasn't closed, but even with this closed, not working correctly.

Do you have a working example?

Screen Shot 2020-08-20 at 11 52 06 am

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.