A plugin to create and edit paper documents, for Kirby CMS.
Documents are created in the panel and display in a specific A4 template, client-side. They can be printed or saved as PDF using the browser's PDF printer. Their URL can be shared or kept private on a per-document basis.
Refer to the screenshots below for more informations
In the panel:
Once filled, documents look like this:
Specific CSS @page queries enable clean printing of documents:
Because of the way page break is managed and repeating elements are handled, it is much easier to use a page break manually. By default it is === but you can change this by setting, in your config.php:
c::set('papeterie.page_break','%%%');
Also change the instructions for the "text" field in blueprints/papeterie_document.yml
.
Because of the way @page is handled, it is strongly advised to use a recent browser such as Chrome 58 for saving pages as PDF. Displaying documents has broader support and more uniform look across browsers.
MIT license.
Plugin initially developed by Louis Eveillard for rh+ architecture. Contributors include mciszczon and texnixe.