Capella87 / winprint

winprint 2.0 - With patches

Home Page:https://tig.github.io/winprint/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

.NET Core CodeFactor

winprint 2

winprint - A modern take on the the classic source code printing app from 1988.

Advanced source code and text file printing for PowerShell. The perfect tool for printing source code, web pages, reports generated by legacy systems, documentation, or any text or HTML file. It works interactively or from the command line making it great for single users or whole enterprises.

  • Prints source code with syntax highlighting and line numbering for over 200 programming languages and file formats.
  • Prints HTML files.
  • Prints "multiple-pages-up" on one piece of paper (saves trees!)
  • Complete control over page formatting options, including headers and footers, margins, fonts, page orientation, etc...
  • Headers and Footers support detailed file and print information macros with rich date/time formatting.
  • Simple and elegant graphical user interface with accurate print preview.
  • The most capable PowerShell printing tool for printing from the command line.
    • Complete control of printing features with dozens of parameters, including Intellicode parameter completion (using tab key).
    • Allows winprint to be used from other applications or solutions. The winpprint PowerShell Out-WinPrint CmdLet is a drop-in replacement for out-printer.
  • Sheet Definitions make it easy to save settings for frequent print jobs.
  • Comprehensive logging.

Documentation

Graphical Interface

winprint 2

PowerShell Command Line Interface

See what version is installed:

PS > Out-WinPrint -verbose
VERBOSE: Out-WinPrint 2.0.5.0 - Copyright Kindel, LLC - https://tig.github.io/winprint

Print a Powershell profile using the default sheet definition and default printer:

Get-Content $profile.CurrentUserAllHosts | winprint -Language powershell
PS > cat Program.cs | wp -PrinterName "Epson MX-80" -Orientation Portrait -Verbose -Title Program.cs
VERBOSE: Out-WinPrint 2.0.5.0 - Copyright Kindel, LLC - https://tig.github.io/winprint
VERBOSE:     Printer:          Epson MX-80
VERBOSE:     Paper Size:       Letter
VERBOSE:     Orientation:      Portrait
VERBOSE:     Sheet Definition: Default 2-Up (0002a500-0000-0000-c000-000000000046)
VERBOSE: Printing sheet 1
VERBOSE: Printing sheet 2
VERBOSE: Printed a total of 2 sheets.
PS >

The following all do the same thing:

Out-WinPrint -FileName program.cs
wp program.cs
winprint program.cs
cat program.cs | wp -Title "program.cs"

Print all .c and .h files in the current directory to the "HP LaserJet" printer, ensuring the {Title} in the header/footers shows the filename. Present verbose output along the way:

ls .\* -include ('*.c', '*.h') | foreach { cat $_.FullName | Out-WinPrint -p "Epson MX-80" -title $_.FullName -verbose}

Contributing

I'm open to pull requests. I'll also take donations, preferably in beer or Scotch.

About

winprint 2.0 - With patches

https://tig.github.io/winprint/

License:MIT License


Languages

Language:C# 74.8%Language:HTML 12.4%Language:Rich Text Format 2.3%Language:JavaScript 2.3%Language:C 2.3%Language:Pascal 1.9%Language:C++ 1.3%Language:CSS 1.2%Language:Java 0.4%Language:Smalltalk 0.3%Language:Swift 0.3%Language:TypeScript 0.2%Language:Python 0.1%Language:Brainfuck 0.1%Language:PowerShell 0.0%