how to "pretty print" HTML document
by SaintDanBert from LinuxQuestions.org on (#4YKWP)
I have a large collection of HTML documents that I've created over the years.
I want to print them so that I can make an archival "book." {Yes, I know this is olde school.}
INFO REQUEST 1 of 2
Can someone direct me to existing utilities, filter programs, and such that will let me make nicer output that I would get simply sending the HTML through CUPS to the printer?
I'm looking for a way to add the following automatically without the need to manipulate each document separately.
Now that I have a way to make "pretty formatted" HTML, can someone tell me how to accomplish either or both of these things?
~~~ 0;-Dan
_______________
* I'm running Linux Mint 19.3, Cinnamon Desktop. My printers rely on HPLIP.


I want to print them so that I can make an archival "book." {Yes, I know this is olde school.}
INFO REQUEST 1 of 2
Can someone direct me to existing utilities, filter programs, and such that will let me make nicer output that I would get simply sending the HTML through CUPS to the printer?
I'm looking for a way to add the following automatically without the need to manipulate each document separately.
- add page breaks in some intelligent manner
- add header and footer details, such as
- print timestamp
- page number/page count
- document file name
- document revision identifier, modification date, or similar
- Creative Commons or similar "notice" phrase
- add a border around the HTML content, indented from the page sheet edge and the printer output margins to separate it from whatever I might want to do with the page sheet output.
Now that I have a way to make "pretty formatted" HTML, can someone tell me how to accomplish either or both of these things?
- from within nemo or nautilus, right-click+print files of type HTML using my "pretty printer" as a filter {Currently*, my right-click menu does not have a 'print' entry.}
- from within all of my desktop applications, enable CUPS to activate and use my "pretty printer".
~~~ 0;-Dan
_______________
* I'm running Linux Mint 19.3, Cinnamon Desktop. My printers rely on HPLIP.