Discussion:
Dymo 450 Turbo via CUPS
Viaduct Productions
2013-02-07 23:09:02 UTC
Permalink
Hiya folks.

Just wanting to know if this is the mailing list where I beg for help. If not, I'll move on.

I just bought a Dymo LabelWriter 450 Turbo, which has some Mac support. They have an application that you have to use in order to use their printer, which completely blows out any workflow that I will be needing. I just want to print out some address labels.

So they mention CUPS. So here I am. Here's what I came up with, but it doesn't seem to be printing. The job doesn't go anywhere for some reason.

The label is a tiny little thing, 28mm x 89 mm (h x w). So I have a 4-line address in a Textedit file. This is what I think should be sent:

lp -d DYMO_LabelWriter_450_Turbo -o page-left=0 -o page-right=0 -o page-top=0 -o page-bottom=0 -o media=Custom.28x89mm -o nowrap -o /Users/rich/Desktop/test_label_1.rtf

The job has a name of unknown, user Withheld, size 0k, pages unknown. So I release it, and nothing happens. CUPS error log says:

E [07/Feb/2013:18:08:04 -0500] [Job 42] Aborting job because it has no files.

Not sure what I'm missing here. Any help appreciated.

Cheers


_____________
Rich in Toronto
Michael Sweet
2013-02-08 02:42:08 UTC
Permalink
You have a stray "-o" in front of the filename you are trying to print...
Post by Viaduct Productions
Hiya folks.
Just wanting to know if this is the mailing list where I beg for help. If not, I'll move on.
I just bought a Dymo LabelWriter 450 Turbo, which has some Mac support. They have an application that you have to use in order to use their printer, which completely blows out any workflow that I will be needing. I just want to print out some address labels.
So they mention CUPS. So here I am. Here's what I came up with, but it doesn't seem to be printing. The job doesn't go anywhere for some reason.
lp -d DYMO_LabelWriter_450_Turbo -o page-left=0 -o page-right=0 -o page-top=0 -o page-bottom=0 -o media=Custom.28x89mm -o nowrap -o /Users/rich/Desktop/test_label_1.rtf
E [07/Feb/2013:18:08:04 -0500] [Job 42] Aborting job because it has no files.
Not sure what I'm missing here. Any help appreciated.
Cheers
_____________
Rich in Toronto
_______________________________________________
cups mailing list
http://lists.easysw.com/mailman/listinfo/cups
_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
Viaduct Productions
2013-02-08 05:08:34 UTC
Permalink
Ah, good eye. I'm tired.

Also it didn't like RTF files.

Cheers
Post by Michael Sweet
You have a stray "-o" in front of the filename you are trying to print...
_____________
Rich in Toronto
Helge Blischke
2013-02-08 10:56:07 UTC
Permalink
Post by Viaduct Productions
Ah, good eye. I'm tired.
Also it didn't like RTF files.
Cheers
Post by Michael Sweet
You have a stray "-o" in front of the filename you are trying to print...
_____________
Rich in Toronto
On Mac OS X, as your first post seems to state, RTF is handled as follows:
text/rtf application/pdf 33 nstexttopdf

Helge
Viaduct Productions
2013-02-08 13:10:47 UTC
Permalink
Hi Helge. How do I incorporate that into a command line? It works with .txt, but I'm coming from the command line.

Any chance you know how I pipe an address into the lp statement? I can't seem to find anything with regards to that. I'm not actually coming from a file as I want a web app to toss an os_process line (like the statement I provided) to the bash shell. I'm holding the address in a variable, but I am not sure how to directly fire text to the lp statement.

Cheers
Post by Helge Blischke
text/rtf application/pdf 33 nstexttopdf
_____________
Rich in Toronto
Helge Blischke
2013-02-08 14:20:54 UTC
Permalink
Post by Viaduct Productions
Hi Helge. How do I incorporate that into a command line? It works with
.txt, but I'm coming from the command line.
Any chance you know how I pipe an address into the lp statement? I can't
seem to find anything with regards to that. I'm not actually coming from
a file as I want a web app to toss an os_process line (like the statement
I provided) to the bash shell. I'm holding the address in a variable, but
I am not sure how to directly fire text to the lp statement.
Cheers
Post by Helge Blischke
text/rtf application/pdf 33 nstexttopdf
_____________
Rich in Toronto
Well, probably CUPS identifies the job as text/plain, as the mime types get lexically sorted for testing.
So, if you explicitely specify the document type, it should work:

lp -d display -o document-format=text/rtf body.rtf

prints OK, and the error_log showl the correct filter chain:
I [08/Feb/2013:15:16:14 +0100] [Job 119] File of type text/rtf queued by "helgeblischke".
I [08/Feb/2013:15:16:14 +0100] [Job 119] Queued on "display" by "helgeblischke".
I [08/Feb/2013:15:16:14 +0100] [Job 119] Started filter /usr/libexec/cups/filter/nstexttopdf (PID 25777)
I [08/Feb/2013:15:16:14 +0100] [Job 119] Started filter /usr/libexec/cups/filter/cgpdftops (PID 25778)
I [08/Feb/2013:15:16:14 +0100] [Job 119] Started filter /usr/libexec/cups/filter/pstops (PID 25779)
I [08/Feb/2013:15:16:14 +0100] [Job 119] Started backend /usr/libexec/cups/backend/gvdpy (PID 25780)
I [08/Feb/2013:15:19:30 +0100] [Job 119] Completed successfully.

Helge
Viaduct Productions
2013-02-08 14:59:27 UTC
Permalink
Right. Thanks for the clarification.
Post by Helge Blischke
Well, probably CUPS identifies the job as text/plain, as the mime types get lexically sorted for testing.
lp -d display -o document-format=text/rtf body.rtf
I [08/Feb/2013:15:16:14 +0100] [Job 119] File of type text/rtf queued by "helgeblischke".
I [08/Feb/2013:15:16:14 +0100] [Job 119] Queued on "display" by "helgeblischke".
I [08/Feb/2013:15:16:14 +0100] [Job 119] Started filter /usr/libexec/cups/filter/nstexttopdf (PID 25777)
I [08/Feb/2013:15:16:14 +0100] [Job 119] Started filter /usr/libexec/cups/filter/cgpdftops (PID 25778)
I [08/Feb/2013:15:16:14 +0100] [Job 119] Started filter /usr/libexec/cups/filter/pstops (PID 25779)
I [08/Feb/2013:15:16:14 +0100] [Job 119] Started backend /usr/libexec/cups/backend/gvdpy (PID 25780)
I [08/Feb/2013:15:19:30 +0100] [Job 119] Completed successfully.
Helge
_____________
Rich in Toronto

Loading...