# http://melusine.eu.org/syracuse/G/git/?p=pst-anamorphosis.git git
# ==============================================================================
-our $windows_pstoedit = '<chemin vers pstoedit.exe>';
+our $windows_pstoedit = 'chemin vers pstoedit.exe';
our $on_windows = $^O =~ /^MSWin/;
our $GS = $on_windows ? "gswin32c" : "gs";
# === Transformation éventuelle par pstoedit -----------------------------------
if ($::opt_ps) {
use File::Copy;
- my $f = "$Nom-original$Ext";
+ my $f = "$Nom-original.$Ext";
copy($Fichier, $f);
- my @a = ($PS, "-f ps", $f, $Fichier);
+ my @a = ($PS, "-f", "ps", $f, $Fichier);
$debug and print STDERR "Processing by pstoedit...\n";
system(@a) == 0 or die "Running pstoedit failed\nCommand :".join(" ",@a)."\n";
$debug and print STDERR "Ok!\n";
if ($$r[$i]->{path}) {
$out .= "%% Path : $i\n";
my $couleur = $$cmyk{$$r[$i]->{setcmykcolor}};
- my $epaisseur = $$r[$i]->{setlinewidth}; $epaisseur = sprintf("linewidth=%0.5fpt", $epaisseur / $facteur);
+ my $epaisseur = $$r[$i]->{setlinewidth}; $epaisseur = sprintf("linewidth=%0.5fpt", $epaisseur * $facteur * $cm);
my $t = $$r[$i]->{type};
$t eq "fill" and $out .= "\\pscustom[fillstyle=solid,fillcolor=$couleur,linestyle=none]{\n";
$t eq "eofill" and $out .= "\\pscustom[fillstyle=asolid,fillcolor=$couleur,linestyle=none]{\n";