[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: GNU Barcodes

On Thu, Dec 11, 2014 at 01:54:08AM -0500, Ethan Rosenberg wrote:
> Dear List -
> I wish to be able to print a barcode .5 inches from top of the page and centered.
> I generate the barcode -
> yes 12345 | head -84 | barcode -p 5x5.0cm -umm -e CODE39 > test.ps;

First of all, try viewing 'test.ps' using ghostview or some other
postscript viewer. As the saying goes: "Garbage In, Garbage Out". If the
postscript file isn't right, then you'll end up printing "correct"

> and print -
> lpr -o media=letter -#1 -P LJ1012 /var/www/test.ps -o page-top=33 -o
> page-bottom=44 -o page-left=60 -o page-right=80

Perhaps a matter of preference here, but personally I'd endeavour to get
the margins, page size etc correct in the post script and then just pass
a whole page to the printer. In that case, use the '-g' option to
barcode to size and position the barcode, then use '-p letter' to place
the barcode on a full sheet. You could then just say "lpr -P LJ1012

> The barcode is
> upside down
> not centered
> at the very top and truncated
> and multiple copies are printed.
> Ethan
> -- 
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject
> of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] 54893F90.50200@hygeiabiomedical.com">https://lists.debian.org/[🔎] 54893F90.50200@hygeiabiomedical.com

Attachment: signature.asc
Description: Digital signature

Reply to: