[gull] création d'un pdf depuis un autre pdf et d'un csv
felix
felix at f-hauri.ch
Thu Oct 5 08:16:33 CEST 2017
( Remarque: je trouve ``pdftops'' plus efficace que ``pdf2ps''! )
J'était dans le train, quand j'ai re-pensé à ce que j'ai écrit...
On Wed, Oct 04, 2017 at 08:07:40AM +0200, felix wrote:
> gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER -sOutputFile=myfile.pdf <(
> res=600 x=100 y=100 string="Premiere partie" formatps="%%\041\n/"
> formatps+="Helvetica findfont\n24 scalefont\nsetfont\nnewpath\n%s %s "
> formatps+="moveto\n(%s) show\nshowpage\n"
> printf "$formatps" $x $y "$string") files{1..12}.ps <(
> res=600 x=100 y=100 string="Seconde partie" formatps="%%\041\n/"
> formatps+="Helvetica findfont\n24 scalefont\nsetfont\nnewpath\n%s %s "
> formatps+="moveto\n(%s) show\nshowpage\n"
> printf "$formatps" $x $y "$string") files{13..33}.ps
Voilà, voilà... quelle horreur, pardon!
Je le refais:
#!/bin/bash
res=600 x=100 y=100 formatps="%%\041\n/Helvetica findfont\n24 scalefont"
formatps+="\nsetfont\nnewpath\n%s %s moveto\n(%s) show\nshowpage\n"
gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER -sOutputFile=myfile.pdf <(
printf "$formatps" $x $y "Partie I") files{1..12}.ps <(
printf "$formatps" $x $y "Partie II") files{13..33}.ps
--
Félix Hauri - <felix at f-hauri.ch> - http://www.f-hauri.ch
More information about the gull
mailing list