diff --git a/CHANGELOG.md b/CHANGELOG.md index 084f67c..0032e2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,12 @@ -### 1.1.2 (next) +### 1.1.3 (next) * Your contribution here. +### 1.1.2 (02/25/2019) + +* [#63](https://github.com/bbulpett/zebra-zpl/pull/63): Un-restrict font size - [@mtking2](https://github.com/mtking2) +* [#62](https://github.com/bbulpett/zebra-zpl/pull/62): Add print service option for print jobs (`lp`/`rlpr`) - [@LagTag](https://github.com/LagTag) + ### 1.1.1 (12/19/2019) * [#58](https://github.com/bbulpett/zebra-zpl/pull/58): Add access to source `Img2Zpl::Image` object - [@mtking2](https://github.com/mtking2) diff --git a/README.md b/README.md index 19dfb54..acb3c60 100644 --- a/README.md +++ b/README.md @@ -97,6 +97,18 @@ print_job.print label, ip This will persist the label contents to a tempfile (using Ruby's tempfile core library) and copy the file to the printer using either `rlpr -H -P -o ` (for Windows systems, see [section](#printing-directly-to-windows-lpd) below) or `lp -h -d -o raw ` (for Unix systems). All the tempfile creation/path resolution, as well as which command has to be used, are handled by the `PrintJob` class. +##### Print Service + +You can specify what print service command you want to be used when calling the `print` method by setting the `:print_service` option parameter. If left unspecified, it will attempt to send the print job first via `rlpr` - if the `rlpr` command fails in anyway then it will fall back to the `lp` command. + +```ruby +print_job.print label, ip, print_service: 'lp' # attempt only via the lp command + +print_job.print label, ip, print_service: 'rlpr' # attempt only via the rlpr command + +print_job.print label, ip # attempt via rlpr first, fallback to lp +``` + #### Printing directly to Windows LPD This gem also supports printing directly to shared printer on Windows using LPD. In order to print directly to a LPD on a Windows machine you need two things: