Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-29-2020, 11:07 AM   #1
Senior Member
Registered: Jan 2009
Location: Austin, TX
Distribution: Mint-17.3 with Cinnamon & KDE
Posts: 1,679
Blog Entries: 3

Rep: Reputation: 105Reputation: 105
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.}

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".

Thanks in advance,
~~~ 0;-Dan
* I'm running Linux Mint 19.3, Cinnamon Desktop. My printers rely on HPLIP.
Old 01-29-2020, 11:57 AM   #2
LQ Guru
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,858

Rep: Reputation: 4479Reputation: 4479Reputation: 4479Reputation: 4479Reputation: 4479Reputation: 4479Reputation: 4479Reputation: 4479Reputation: 4479Reputation: 4479Reputation: 4479
probably: (?)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Simple Image Reducer - Pretty slick, Pretty easy, Pretty light, & Pretty nice. LXer Syndicated Linux News 0 05-14-2013 06:41 AM
Is it possible to print a HTML document into PDF by conserving all links and anchors? dariyoosh Linux - Software 3 02-14-2013 07:19 AM
seeking software to "pretty print" vcard &c data SaintDanBert Linux - Software 1 11-16-2010 11:15 PM
Oh! Pretty! - and Pretty Demanding of System Resources ;) tallship Linux - General 3 06-04-2010 05:58 PM
html; character encoding per document tag, not whole document TheLinuxDuck Programming 0 08-14-2008 11:12 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration