Skip to content

Commit 8f8c28e

Browse files
authored
Merge pull request #64 from mtking2/release-1_1_2
Release 1.1.2
2 parents 75278dd + 5e425a3 commit 8f8c28e

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
### 1.1.2 (next)
1+
### 1.1.3 (next)
22

33
* Your contribution here.
44

5+
### 1.1.2 (02/25/2019)
6+
7+
* [#63](https://github.com/bbulpett/zebra-zpl/pull/63): Un-restrict font size - [@mtking2](https://github.com/mtking2)
8+
* [#62](https://github.com/bbulpett/zebra-zpl/pull/62): Add print service option for print jobs (`lp`/`rlpr`) - [@LagTag](https://github.com/LagTag)
9+
510
### 1.1.1 (12/19/2019)
611

712
* [#58](https://github.com/bbulpett/zebra-zpl/pull/58): Add access to source `Img2Zpl::Image` object - [@mtking2](https://github.com/mtking2)

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,18 @@ print_job.print label, ip
9797

9898
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.
9999

100+
##### Print Service
101+
102+
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.
103+
104+
```ruby
105+
print_job.print label, ip, print_service: 'lp' # attempt only via the lp command
106+
107+
print_job.print label, ip, print_service: 'rlpr' # attempt only via the rlpr command
108+
109+
print_job.print label, ip # attempt via rlpr first, fallback to lp
110+
```
111+
100112
#### Printing directly to Windows LPD
101113
This gem also supports printing directly to shared printer on Windows using LPD.
102114
In order to print directly to a LPD on a Windows machine you need two things:

0 commit comments

Comments
 (0)