A small Java library that allows to print documents of type
- HTML
- Text
from within Mirth on the fly to a network printer w/o having a driver installed locally.
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);
- unpack the latest release
- 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"
- reload resources (assure that Include all Subdirectories-checkbox is checked)
- reference the custom resource in your channel