UNPKG

bookletize.js

Version:

Reformat PDFs into booklets in 4,1,2,3 or 8,1,2,7/6,3,4,5 format in JavaScript.

58 lines (43 loc) 1.88 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta property="og:title" content="Bookletize.js" /> <meta property="og:description" content="Reformat PDFs into booklets in 4,1,2,3 or 8,1,2,7/6,3,4,5 format in JavaScript."/> <title>Bookletize.js</title> <script src="node_modules/jquery/dist/jquery.min.js"></script> <script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script> <link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css"> <link href="node_modules/font-awesome/css/font-awesome.min.css" rel="stylesheet"> <script src="node_modules/pdf-lib/dist/pdf-lib.min.js"></script> <script src="node_modules/pdfobject/pdfobject.js"></script> <script src="dist/bookletize.js"></script> <link rel="stylesheet" href="dist/bookletize.css"> </head> <body> <header> <center> <h1><i class="fa fa-file-pdf-o"></i></h1> <h1>Bookletize.js</h1> <p style="width:50%;">Reformat PDFs into booklets in 4,1,2,3 or 8,1,2,7/6,3,4,5 format in JavaScript for making bound paper booklets. Print the resulting PDF, fold in half and staple to form a booklet. <br /> <a href="https://github.com/jywarren/bookletize.js">Open Source</a> by <a href="https://unterbahn.com">Jeffrey Yoo Warren</a></p> </center> </header> <div id="dropzone" class="dropzone"> <p id="dropzone-text"> <i>Select or drag in a PDF</i> </p> <center> <i class="hidden fa fa-spin fa-circle-o-notch"></i> <input type="file" id="fileInput" value="" accept="application/pdf"><br /> </center> </div> <center><h3></h3></center> <div id="pdf"></div> <script> (function() { setup(); })(); </script> </body> </html>