printing Avery labels

J

Joseph Alotta

Greetings,

Does anyone know how to print Avery labels with ruby? Perl has a
library for this, but I couldn't find anything with ruby. How do you
set the font for printing? How do you tab over a certain number of
centimeters?


Joe

jalotta at earthlink dot net
 
K

Kevin Brown

Greetings,

Does anyone know how to print Avery labels with ruby? Perl has a
library for this, but I couldn't find anything with ruby. How do you
set the font for printing? How do you tab over a certain number of
centimeters?

The best thing to do would be to either port the Perl CPAN library to Ruby or
use PostScript directly. I'm going to need to do something similar shortly,
so I may be porting the library in the first place.

Anyone else know of a better solution?
 
W

William James

Kevin said:
The best thing to do would be to either port the Perl CPAN library to Ruby or
use PostScript directly. I'm going to need to do something similar shortly,
so I may be porting the library in the first place.

Anyone else know of a better solution?

I print labels with TeX.
 
J

James Britt

Joseph said:
Greetings,

Does anyone know how to print Avery labels with ruby? Perl has a
library for this, but I couldn't find anything with ruby. How do you
set the font for printing? How do you tab over a certain number of
centimeters?

Perhaps use Austin Ziegler's PDF Writer to create PDF files, and send
those to the printer


James


--

http://www.ruby-doc.org - Ruby Help & Documentation
http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
http://www.30secondrule.com - Building Better Tools
 
D

Daniel Kelley

William James said:
I print labels with TeX.

As do I (well, with LaTex). Here a test template for Avery 2160
labels:

---snip---
% -*-latex-*-
% avery2160test.tex
%
% dkelley - 13 Apr 2001
%

\documentclass[10pt]{article}
\usepackage{labels}
\LabelCols=1
\LabelRows=10
\LeftBorder=80mm
\RightBorder=80mm
\TopBorder=14mm
\BottomBorder=10mm
\LabelInfotrue
\LabelGridtrue
\begin{document}
\begin{labels}
123456789012345678901234567890
2WWWWWWWWWWWWWW
3WWWWWWWWWWWWWW
4WWWWWWWWWWWWWW
5WWWWWWWWWWWWWW

\end{labels}
\end{document}
---snip---


d.k.
 
G

Gregory Brown

Perhaps use Austin Ziegler's PDF Writer to create PDF files, and send
those to the printer

This is what I do. Joseph, if you'd like, email me off list and I'll
send you the code I use to do label printing. (no big secret just not
worthy of public consumption ;) )
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top