Wednesday, 24 January 2018

Html to pdf convert jquery

<!DOCTYPE html>

        <script src=""></script>

        <title>jquery - Download a div in a HTML page as pdf using javascript - Stack Overflow</title>
<div id="content">
     <h3>Hello, this is a H3 tag</h3>

    <p>a pararaph</p>
<div id="editor"></div>
<button id="cmd">generate PDF</button>
<script src=""/></script>
var doc = new jsPDF();
var specialElementHandlers = {
    '#editor': function (element, renderer) {
        return true;

$('#cmd').click(function () {
    doc.fromHTML($('#content').html(), 15, 15, {
        'width': 170,
            'elementHandlers': specialElementHandlers


Thursday, 21 September 2017

Parse server backup from heroku

//Installation parse server
install nodejs above 4.3
install mongodb

Heroku install on local
//install heroku
gem install heroku
//login to terminal enter email id and password
heroku login

//clone app on local machine
heroku git:clone -a your_app_name

//run parse server
cd app_direc >> run npm install commond >> npm start