Skip to content

A plugin to create and edit paper documents for Kirby CMS.

Notifications You must be signed in to change notification settings

louis-ev/Papeterie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Papeterie

A plugin to create and edit paper documents, for Kirby CMS.

Description

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

Screenshots

In the panel:

image

image

Once filled, documents look like this:

image

image

image

Specific CSS @page queries enable clean printing of documents:

image

Options

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.

Bugs

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.

License / credits

MIT license.

Plugin initially developed by Louis Eveillard for rh+ architecture. Contributors include mciszczon and texnixe.

About

A plugin to create and edit paper documents for Kirby CMS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published