https://github.com/hiswe/print-webpage-paged-js
https://github.com/hiswe/print-webpage-paged-js
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hiswe/print-webpage-paged-js
- Owner: Hiswe
- License: mit
- Created: 2024-05-05T10:04:50.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-06T09:02:53.000Z (over 2 years ago)
- Last Synced: 2025-03-22T17:44:47.019Z (over 1 year ago)
- Language: Vue
- Size: 1.33 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# An exemple to print a simple website
based on:
- https://gitlab.coko.foundation/pagedjs/starter-kits/print-a-webpage
- starter kit blog post https://pagedjs.org/posts/2020-04-15-starterkits-for-pagedjs/
An exemple of a webpage that you can print with paged.js (buttons included)
- CSS for screen and print
- Paged.js 0.1.42 included
- Script for register your handlers
- Waits for the page to be returned before printing
## Instructions
- Use any local server.
- Write your content in `index.html`
- Write your CSS for the screen in `css/style-screen.css` and your CSS for the print in `css/style-print.css`
- If you need to register handlers, you can do it in `js/handlers.js`/