Commit 7bf501e7 authored by Fred Chasen's avatar Fred Chasen
Browse files

Added js example

parent 56a01970
Paged.js - Paged Media Tools
## NPM Module
$ npm install pagedjs
import { Chunker, Styler} from 'pagedjs';
let styles = new Styler();
let styleText = await styles.add("path/to/css/file.css");
let chunker = new Chunker(DOMContent, document.body, styles).then((flow) => {
console.log("Rendered",, "pages.");
## Polyfill
Add the the `paged.polyfill.js` script to replace all `@page` css and render the html page with the Paged Media styles applied:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment