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 - <[email protected]> - http://www.f-hauri.ch
_______________________________________________
gull mailing list
[email protected]
http://forum.linux-gull.ch/mailman/listinfo/gull