Word processor in your browser using HTML and CSS (e.g. for invoices, legal notices, etc.)
- Poor man's Google Docs
- Like the foundation of Microsoft Word or LibreOffice — but in your web browser
- Emulates sheets of paper in web documents (but without skeuomorphic paper textures)
Live demo: Try modifying or printing the page
- Copy all files to any desired directory
- Modify the HTML source in
index.html
to your liking
- Chrome 4+
- Firefox 19+
- Safari 5+
- Opera 10.1+
- Internet Explorer 9+
- Edge 12+
A4
(21cm × 29.7cm) —sheets-of-paper-a4.css
A3
(29.7cm × 42cm) —sheets-of-paper-a3.css
US Letter
(21.6cm × 27.9cm) —sheets-of-paper-usletter.css
US Legal
(21.6cm × 35.6cm) —sheets-of-paper-uslegal.css
US Tabloid
(27.9cm × 43.2cm) —sheets-of-paper-ustabloid.css
- In the
css/sheets-of-paper-*.css
variant that you’re using:- Swap the values of
width
andmin-height
- Set the second value of the
size
attribute tolandscape
- Swap the values of
- In
index.html
, setConfig.pageHeightInCentimeter
to your newmin-height
value from above
- Change the
Destination
toSave as PDF
. - Make sure the
Paper size
is set to the one defined in your CSS. - From the
Margins
list, chooseNone
to prevent the browser from overriding our CSS. - In the
Options
section, uncheckHeaders and footers
and checkBackground colors and images
.
This project is licensed under the terms of the MIT License.