Quick Start - HopefulLlama/Bootstrap-Booklet GitHub Wiki

The following code block should give you a quick example of how to use Bootstrap-Booklet. You may wish to copy, paste and adapt the code below.

var booklet = new BootstrapBooklet("#booklet");  // Declare variable of new BootstrapBooklet with parameter being a string, referring to the ID of a div element in the HTML.
booklet.addPage("A", "<p>Some test data</p>"); // Call .addPage with a title and the body HTML.
booklet.addPage("1234-abv", "<p>Some more test data</p>");
booklet.generate(); //Generate the booklet.