Article 4YKWP how to "pretty print" HTML document

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.
  • 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.
INFO REQUEST 2 of 2
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".
Thanks in advance,
~~~ 0;-Dan
_______________
* I'm running Linux Mint 19.3, Cinnamon Desktop. My printers rely on HPLIP.latest?d=yIl2AUoC8zA latest?i=ycIvcdwB4PQ:-SelOWp_EmA:F7zBnMy latest?i=ycIvcdwB4PQ:-SelOWp_EmA:V_sGLiP latest?d=qj6IDK7rITs latest?i=ycIvcdwB4PQ:-SelOWp_EmA:gIN9vFwycIvcdwB4PQ
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments