Giter VIP home page Giter VIP logo

network-printing's Introduction

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

network-printing's People

Contributors

odoodo avatar

Watchers

 avatar

network-printing's Issues

Problems with printing from Windows Server

I ran into you library when looking to solve an issue we had with printing from our mirth integrations.

Is it possible that it does not work with installations on Microsoft Windows Server. We keep getting:

Wrapped java.awt.print.PrinterException: No PostScript factories available

While I have added every feature and driver possible I could find. When running from a local laptop it works just fine?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.