Diff for /loncom/interface/printout.pl between versions 1.17 and 1.18

version 1.17, 2002/08/14 19:33:14 version 1.18, 2002/08/14 20:38:52
Line 3  use IO::File; Line 3  use IO::File;
 use Image::Magick;  use Image::Magick;
  print "Content-type: text/html\n\n";   print "Content-type: text/html\n\n";
  print "<body bgcolor=\"#FFFFFF\">\n";   print "<body bgcolor=\"#FFFFFF\">\n";
   my ($texfile,$laystyle) = split(/&/,$ENV{'QUERY_STRING'});    my ($texfile,$laystyle,$numberofcolumns) = split(/&/,$ENV{'QUERY_STRING'});
   my $figfile = $texfile;    my $figfile = $texfile;
   $figfile =~ s/^([^\.]+printout)[^t]+\.tex/$1\.dat/;    $figfile =~ s/^([^\.]+printout)[^t]+\.tex/$1\.dat/;
   my $duefile = $texfile;    my $duefile = $texfile;
Line 79  use Image::Magick; Line 79  use Image::Magick;
       $comma = "psnup -2 -s1.0 $new_name_file";        $comma = "psnup -2 -s1.0 $new_name_file";
       system("$comma $tempo_file");         system("$comma $tempo_file"); 
       system("ps2pdf $tempo_file $name_file");        system("ps2pdf $tempo_file $name_file");
   } elsif ($laystyle eq 'book') {    } elsif ($laystyle eq 'book' and $numberofcolumns eq '2') {
         $comma = 'pstops "2:0+1(0.5w,0)"';
         system("$comma $new_name_file $tempo_file");
         system("ps2pdf $tempo_file $name_file");
     } else {
       system("ps2pdf $new_name_file $name_file");        system("ps2pdf $new_name_file $name_file");
   }        }    
   my $texlog = $texfile;    my $texlog = $texfile;
Line 91  use Image::Magick; Line 95  use Image::Magick;
   $texdvi =~ s/\.tex/\.dvi/;    $texdvi =~ s/\.tex/\.dvi/;
   $texps =~ s/\.tex/\.ps/;    $texps =~ s/\.tex/\.ps/;
   my @garb = ($texlog,$texaux,$texdvi,$texps);    my @garb = ($texlog,$texaux,$texdvi,$texps);
   unlink @garb;    #unlink @garb;
   unlink $duefile;    unlink $duefile;
   print "<a href=\"/prtspool/$name_file\">Your PDF document</a>";    print "<a href=\"/prtspool/$name_file\">Your PDF document</a>";
   print "\n";    print "\n";

Removed from v.1.17  
changed lines
  Added in v.1.18


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>