[barcode] Rotation?
Franz Zahaurek
fzk@member.fsf.org
Fri Jun 25 23:46:26 CEST 2004
Hi,
Carl Perry writes:
> Is there a patch somwhere that will allow me to rotate the barcode
> output, even if it's only in increments of 90 degrees? I have a need to
> place a barcode on the long edge of US Letter paper, and I cannot seem
> to do it myself.
To rotate a barcode add appropriate PostScript commands to its ps-file.
Take a look at the following example. It's the beginning of a barcode
that I generated with the following command and I added one line:
barcode -b 12345 -o barcode.ps
%!PS-Adobe-2.0
%%Creator: "barcode", libbarcode sample frontend
%%DocumentPaperSizes: A4
%%EndComments
%%EndProlog
%%Page: 1 1
100 0 translate 90 rotate % <=== add this line here
% Printing barcode for "12345", scaled 1.00, encoded using "code 128-B"
% The space/bar succession is represented by the following widths (space first):
% 02112141232212232112211322212312132122141212331112
...
Now the barcode shows 90 degree rotated counter clockwise.
Hope this helps.
- Franz
--
Franz Zahaurek fzk@member.fsf.org
Vienna, Austria, Europe http://www.fzk.at
More information about the barcode
mailing list