GithubHelp home page GithubHelp logo

pmihailovs / html2pdf.it Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apilayer/html2pdf.it

0.0 2.0 0.0 48.86 MB

Webservice for generating pdfs from html

Home Page: html2pdf.it

License: Apache License 2.0

html2pdf.it's Introduction

html2pdf.it

Using PhantomJS to generate pdfs, via a webservice. Runs using node.js.

See it in action at: html2pdf.it.

Ready to fork and push to heroku (where I run it).

Works out of the box on both windows and ubuntu.

On Mac you need to

brew install phantomjs

To get started you need to clone the repository, cd to it and run

npm install

Running webserver locally

This also opens your webbrowser on the local webserver

node open.js

Running webserver

node lib/app.js

If you want to host html2pdf.it yourself, you will have to ask your host if they support hosting Node.js applications. Node.js is still new, so a lot of hosts don't support it.

If your host does not support Node.js. You need to find a new host that does. Heroku.com or nodejitsu.com for example.

Running tests

npm test

Node modules used

  • Routing etc. is done with express
  • Testing is done with mocha, chai and sinon, using BDD style tests.
  • JSHint is run on the JavaScript code

Node version

Version 0.10+ of node.js is required (Domains are used for catching errors, and domains where not really stable before 0.10)

html2pdf.it's People

Contributors

ebdrup avatar

Watchers

James Cloos avatar Pavels 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.