Paged.js is a free and open source JavaScript library that paginates content in the browser to create PDF output from any HTML content. This means you can design works for print (eg. books) using HTML and CSS!
Paged.js follows the Paged Media standards published by the W3C (ie the Paged Media Module, and the Generated Content for Paged Media Module). In effect Paged.js acts as a polyfill for the CSS modules to print content using features that are not yet natively supported by browsers.
- Discussions and help: Mattermost, Discourse
- Development: Gitlab
Paged.js
After years of trying a lot of solutions to make books out of HTML, and frustrated by the issues we found with each one of them, we ended up by building one of our own, following some mandatory principles.
- We’ll follow the standards of the W3C. Standards are in the DNA of what we’re doing. If we want to add some feature, we’ll write down the specifications and discuss with all the members of the W3C to see how it would make sense for them and we are open to anyone who want to share their thoughts. This project will be over when we are happy with the browsers’ implementation of the W3C specification for print.
- Paged.js is a community driven project, we’ll make sure that anyone feels just like at home, newcomers and old friends alike. We’ll always put the community needs first: we have a Mattermost that we use to discuss everything and the development is hosted on our gitlab. All the issues are read and answered as fast as possible.
- Paged.js comes either as a paginated preview or as a command line interface (CLI) to produce the pdf.
Welcome around :)
Colophon
Paged.js was founded by Adam Hyde and is currently developed by Julie Blanc, Fred Chasen and Julien Taquet at Coko.
The Paged.js logo was designed by the lovely Anton Moglia and our own awesome Julie Blanc during a train journey returning from the 60-year-old type design event called Les Rencontres de Lure.
The Paged.js website was designed and built by Adam Hyde and Julien Taquet using the great static website generator 11ty.
Our articles go through the brilliant eyes of Raewyn Whyte, our amazing editor, based in New Zealand. If you find a typo somewhere, it means that it went live on the website without going through her magic hands.
The website is mainly using the Jost* font from Indestructible type and Fanwood Text from the league of moveable type, both free and open source fonts. When it comes to code, we’re also using Victor Mono, designed by Rune B, which is also free and open source.