cognitom / paper-css

Paper CSS for happy printing
https://www.npmjs.com/package/paper-css
MIT License
2.51k stars 342 forks source link

Comparison with Gutenberg & Hartija Css Frameworks #28

Open Aarbel opened 6 years ago

Aarbel commented 6 years ago

Hi paper-css teams,

Why did you created this library compared to Gutenberg and Hartija Css Frameworks ?

https://github.com/BafS/Gutenberg https://github.com/vladocar/Hartija---CSS-Print-Framework

What are the core differences between Gutenberg, Hartija and Paper-css ?

Thanks !

cognitom commented 6 years ago

Hi @Aarbel, I made this library to create beutiful receipts, invoices, tickets and more with ease. The point is that they are just for printing and not supposed to be webpages:

library documents *1 formal printings *2 page break layout paper size
paper-css - good manually fixed supported
Gutenberg ok - automatically fluid -
Hartija ok - automatically fluid -
Aarbel commented 6 years ago

@cognitom thanks for your reactivity !

Just a few more questions, you seem highly invested in this repository so my goal is to make the greatest possible. For me printing well formatted html is the best way to avoid server-side pdf rendering, and it's a great way to save a lot of money / maintaining time for developers.

About page breaks

About layout

Definitions

Don't hesitate to add all these details in your readme ;)

cognitom commented 6 years ago

@Aarbel, what this library can is written in here: https://github.com/cognitom/paper-css/blob/master/paper.css

Or you can try npm run preview:

$ git clone https://github.com/cognitom/paper-css.git
$ cd paper-css
$ npm install
$ npm run preview

What happens if the content overflows a page ?

https://github.com/cognitom/paper-css/blob/master/paper.css#L5

What's the difference between fixed and fluid ?

In the most of case, I use position: absolute; with paper-css. That's fixed I mean.