Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cesarvr/pdf-generator-example
HTML to PDF Mobile application.
https://github.com/cesarvr/pdf-generator-example
Last synced: about 1 month ago
JSON representation
HTML to PDF Mobile application.
- Host: GitHub
- URL: https://github.com/cesarvr/pdf-generator-example
- Owner: cesarvr
- Created: 2016-02-20T19:19:14.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-05-06T16:49:40.000Z (over 3 years ago)
- Last Synced: 2023-10-20T18:45:12.447Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 8.27 MB
- Stars: 12
- Watchers: 3
- Forks: 10
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## PDF Generator Cordova
This is just a demo showcasing the pdf generator Cordova plugin
## Getting started.
```sh
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](https://webpack.github.io/) and [Backbone](https://webpack.github.io/), is just a simple web app if you want to do some modifications you need to:
```sh
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:
```sh
cordova serve
#or
cd www/ && python -m SimpleHTTPServer 8080
```
to run the app on the device:
```sh
cordova plugin add cordova-pdf-generator
cordova build #ios android
cordova run ios #android
```## Demo
### Android version.
![Android](https://github.com/cesarvr/pdf-generator-example/blob/master/docs/android-demo.gif)### IOS Version
![IOS](https://github.com/cesarvr/pdf-generator-example/blob/master/docs/ios-demo.gif)