LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   how to "pretty print" HTML document (https://www.linuxquestions.org/questions/linux-software-2/how-to-pretty-print-html-document-4175668632/)

SaintDanBert 01-29-2020 11:07 AM

how to "pretty print" HTML document
 
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.

pan64 01-29-2020 11:57 AM

probably: https://wkhtmltopdf.org/ (?)

SaintDanBert 04-21-2020 12:49 PM

Quote:

Originally Posted by pan64 (Post 6084179)

Sorry to take so long to acknowledge your help.

Thank you for the reply,
~~~ 0;-Dan


All times are GMT -5. The time now is 11:34 PM.