--- loncom/interface/printout.pl 2004/02/18 22:23:19 1.50 +++ loncom/interface/printout.pl 2004/02/18 23:33:17 1.51 @@ -1,7 +1,7 @@ #!/usr/bin/perl # CGI-script to run LaTeX, dvips, ps2ps, ps2pdf etc. # -# $Id: printout.pl,v 1.50 2004/02/18 22:23:19 albertel Exp $ +# $Id: printout.pl,v 1.51 2004/02/18 23:33:17 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -33,6 +33,8 @@ use File::Path; use IO::File; use Image::Magick; use Apache::lonhtmlcommon; +use Apache::loncommon; +use Apache::lonlocal; $|=1; my %origENV=%ENV; @@ -49,9 +51,10 @@ Your cookie information is incorrect. END return; } - - print "Content-type: text/html\n\n"; - print "\n"; + &Apache::lonlocal::get_language_handle(); + &Apache::loncommon::content_type(undef,'text/html'); + my $bodytag=&Apache::loncommon::bodytag('Creating PDF','',''); + print $bodytag; my $identifier = $ENV{'QUERY_STRING'}; my $texfile = $ENV{'cgi.'.$identifier.'.file'};