Skip to content

A small Java library that allows to print documents from within Mirth on the fly to a network printer without having a driver installed locally.

License

Notifications You must be signed in to change notification settings

odoodo/Network-Printing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Network-Printing

A small Java library that allows to print documents of type

  • PDF
  • HTML
  • Text

from within Mirth on the fly to a network printer w/o having a driver installed locally.

Functionality

Print a pdf document represented by a byte array:

Packages.lu.hrs.mirth.NetworkPrinting.printPdf(documentToPrintAsByteArray, printerIpOrName);

Print a base64-encoded document:

Packages.lu.hrs.mirth.NetworkPrinting.printPdfBase64(base64EncodedDocumentToPrint, printerIpOrName);

Print an HTML page:

Packages.lu.hrs.mirth.NetworkPrinting.printHtml(htmlCode, printerIpOrName);

Print text:

Packages.lu.hrs.mirth.NetworkPrinting.printText(textToPrint, printerIpOrName, encoding);

Installation

  1. unpack the latest release
  2. place the whole folder in either the custom-lib folder or (better) place the folder in your Mirth installation and add a specific resource "NetworkPrinting"
  3. reload resources (assure that Include all Subdirectories-checkbox is checked)
  4. reference the custom resource in your channel

About

A small Java library that allows to print documents from within Mirth on the fly to a network printer without having a driver installed locally.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages