X-Git-Url: https://melusine.eu.org/syracuse/G/git/?p=pst-anamorphosis.git;a=blobdiff_plain;f=opt%2Fpsftopst.pl;h=7cd5f5145493234c76233132ca645262f37836fd;hp=ffc6a27e5496ea110aabc5b3662dc6d82800b321;hb=2073587ccf8518370f5bccac9f1c045f64c96e0e;hpb=ff731308e79c20bc12a431b08dc60de2e51e3668 diff --git a/opt/psftopst.pl b/opt/psftopst.pl index ffc6a27..7cd5f51 100755 --- a/opt/psftopst.pl +++ b/opt/psftopst.pl @@ -39,9 +39,9 @@ our ($Nom, $Dir, $Ext) = &FichierNRE($Fichier); # === 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"; @@ -124,7 +124,7 @@ sub EcritureFichierPST { 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";