print_rfc_or_draft

This is a simple program that prints an Internet Draft (ID) or RFC.

 

Because of the difference between the number of lines on laser printers and line / dot-matrix printers, each "page" of the draft actually takes up 2 pages and you end up with lots of pages with just a one line footer.

This script tries to fix that by downloading the draft, converting it to a PDF and then printing it.


  This script prints an Internet Draft (or RFC). It does this by
  reading the file (possibly first fetching it from the Internet),
  converting it to a PDF (and doing basic munging on it and then
  sending the PDF to lpr to actually do the printing.

  Usage:
    -F, --file <filename>  -- print this local file.
    -O, --outdir <dir>     -- save the converted PDF in this dir.
    -h, --help             -- this help.
    <url>                  -- fetch (and print) the file at the URL.
  Example:
      ./print_rfc_or_draft.py  http://tools.ietf.org/rfc/rfc5635.txt
         Fetches and prints RFC5635 from the ietf.org site and prints it.

      ./print_rfc_or_draft.py -F ~wkumari/docs/IETF/MyDrafts/deprecate-as-sets-00.txt
         Prints the local file called deprecate-as-sets-00.txt.

 

Source is: print_rfc_or_draft.py

Additional information