Skip to content

Commit

Permalink
Merge pull request #64 from mtking2/release-1_1_2
Browse files Browse the repository at this point in the history
Release 1.1.2
  • Loading branch information
mtking2 authored Feb 25, 2020
2 parents 75278dd + 5e425a3 commit 8f8c28e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <hostname/ip> -P <your-printer-name-on-windows> -o <path-to-the-temp-file>` (for Windows systems, see [section](#printing-directly-to-windows-lpd) below) or `lp -h <hostname/ip> -d <your-printer-name-on-cups> -o raw <path-to-the-tempfile>` (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:
Expand Down

0 comments on commit 8f8c28e

Please sign in to comment.