loenex / pdf-generator-example

HTML to PDF Mobile application.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PDF Generator Cordova

This is just a demo showcasing the pdf generator Cordova plugin

Getting started.

    git clone https://github.com/cesarvr/pdf-generator-example sample
    cd sample
    cordova platform add ios android

For the web application I'm using Webpack and Backbone, is just a simple web app if you want to do some modifications you need to:

  cd www/
  npm install
  npm webpack -g  # if you don't have webpack.
  webpack --watch   

This will build automatically the source files and you can use your favorite static server to serve the www/ folder for example:

cordova serve

#or

cd www/ && python -m SimpleHTTPServer 8080

to run the app on the device:

cordova plugin add cordova-pdf-generator
cordova build #ios android
cordova run ios #android

Demo

### Android version. Android

IOS Version

IOS

About

HTML to PDF Mobile application.


Languages

Language:HTML 80.9%Language:JavaScript 18.9%Language:CSS 0.2%Language:Shell 0.0%