Git Product home page Git Product logo

pdffrom's Introduction

pdfFrom

Vercel function which generates PDFs from Webpages.

๐Ÿ‘‹ Introduction

This repo contains the code for a simple Vercel function which generates a PDF file from any webpage using a headless Chrome instance.

๐Ÿš€ Get started

Deploy with Vercel

Or setup manually:

Clone this repository:

git clone https://github.com/elmsln/pdfFrom

Install all dependencies:

yarn install

Login to your Vercel account and setup a project:

vercel

Run the function locally:

yarn run develop

Deploy to Vercel in production:

yarn run deploy 

๐Ÿ“š Usage

After you've deployed the function, you can use it by placing your function's domain infront of any URL:

to-pdf.vercel.app/https://github.com/elmsln/pdfFrom

The function will then generate a PDF of that URL and return it as a downloadable file.

Here is how this GitHub Page looks as a PDF:

example

๐Ÿ’ป Development

Issues and PRs are very welcome!

This project adheres to Semantic Versioning. To see differences with previous versions refer to the CHANGELOG.

License

Copyright 2022 ELMS: Learning Network

Project based off of work from: https://github.com/BetaHuhn/vercel-pdf-converter Copyright 2020 Maximilian Schiller

This project is licensed under the MIT License - see the LICENSE file for details.

pdffrom's People

Contributors

betahuhn avatar btopro avatar

Watchers

 avatar

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.