On Thu, Nov 11, 2004 at 08:58:19PM +0100, F�lix Hauri wrote:
> Si c'est le cas, le ``filtre'' pstoqqch c'est Ghostscript:
( On dit aussi ``rip'' pour Raster Image Processor )
> $ gs -q -dBATCH -dSAFER -dQUIET -dNOPAUSE -sPAPERSIZE=a4 \
> -g19864x7023 -r2400x600 -sDEVICE=pnmraw -sOutputFile=- \
> $CCFILTER - | \
> pnm2samsung...
ou ``ppmtosplc'' pour te relire;)
>...
> for i in 360 600 720 800 1200 1440 2400;do
> printf "%4d %8.0f %8.0f\n" $i \
> $(echo "p1=sqrt(sqrt(2))/4/.0254*$i;p1;p1/sqrt(2)"|bc -l)
> done
Oups! J'aurrais pu pr�senter les choses dans l'ordre, de plus un
``bug'' de language (entre bc et printf) rendait le script innop�rant
sur une config fr_CH:
printf "%8s -> %8s x %8s\n" R�sol Largeur Hauteur ;\
for i in 180 200 300 360 400 600 720 800 1200 1440 2400;do
env LC_ALL=C printf "%8d -> %8.0f x %8.0f\n" $i \
$(echo "p1=sqrt(sqrt(2))/4/.0254*$i;p1/sqrt(2);p1"|bc -l)
done
R�sol -> Largeur x Hauteur
180 -> 1490 x 2107
200 -> 1655 x 2341
300 -> 2483 x 3511
360 -> 2980 x 4214
400 -> 3311 x 4682
600 -> 4966 x 7023
720 -> 5959 x 8427
800 -> 6621 x 9364
1200 -> 9932 x 14046
1440 -> 11918 x 16855
2400 -> 19864 x 28092
A noter que ``-r600'' signifie ``-r600x600'', mais que
``-gXXXxYYY'' ne peut pas s'abr�ger.
De plus, avec:
http://www.linuxprinting.org/show_printer.cgi?recnum=Samsung-CLP-500
J'apprend que:
Samsung CLP-500
Color laser printer, max. 1200x1200 dpi, this is a Paperweight
et aussi:
Samsung supports this printer with proprietary drivers which come
with the printer on its driver CD or can be downloaded on the web
sites of Samsung. Unfortunately, these drivers do not work
necessarily with all Linux distributions and there are no free
drivers available. As it is also not sure whether Samsung will
update their drivers for future Linux versions, this printer cannot
be recommended.
Sans commentaires...
Bref, si ton ``ppmtosplc'' fonctionne, et apr�s avoir lu sa doc ( si
tant est qu'il y en ait une ;), qqch comme:
gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sPAPERSIZE=a4 \
-g9932x14046 -r1200 -sDEVICE=pnmraw -sOutputFile=- - |\
ppmtosplc
devrait te permettre de ``piloter'' finement ton imprimante, mais
qqch comme:
gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sPAPERSIZE=a4 \
-g4966x7023 -r600 -sDEVICE=pnmraw -sOutputFile=- - |\
ppmtosplc
risque de te donner un r�sultat tout-�-fait satisfaisant (si pas
trop petit... 'faut voir comment se manipule ppmtosplc...) et bcp
plus rapide.
--
F�lix Hauri - <[EMAIL PROTECTED]> - http://www.f-hauri.ch
_______________________________________________
gull mailing list
[EMAIL PROTECTED]
http://lists.alphanet.ch/mailman/listinfo/gull