[gull] {Content?} Etiquette codebarre
felix
felix at f-hauri.ch
Mon Sep 5 11:29:35 CEST 2016
Bonjour,
C'est plus du Postscript que du Bash...
On Sun, Sep 04, 2016 at 09:00:59PM +0200, Dominique-Georges Branciard wrote:
>
> Un vieux problème.
A rafraichir...
> je cherche a envoyer un fichier postscript qui contient une première
> ligne (Nom d'un jeux) et la deuxieme ligne un code barre. sur une
> imprimante Brother QL-1060N
Tu peux essayer:
{
pstextfmt='%%!\n/Helvetica findfont\n12 scalefont\nsetfont\n'
pstextfmt+='newpath\n10 68 moveto\n(%s) show\n'
printf "$pstextfmt" 'VELASQUEZ Juliana'
barcode -b "21160902173756" -E -g 150x50
} >barcode.ps
voire
gs -sDEVICE=epswrite -sOutputFile=barcode.ps <(
pstextfmt='%%!\n/Helvetica findfont\n12 scalefont\nsetfont\n'
pstextfmt+='newpath\n10 68 moveto\n(%s) show\n'
printf "$pstextfmt" 'VELASQUEZ Juliana'
barcode -b "21160902173756" -E -g 150x50
) -c quit
--
Félix Hauri - <felix at f-hauri.ch> - http://www.f-hauri.ch
More information about the gull
mailing list