version 1.142.6.3, 2010/05/11 12:10:25
|
version 1.144, 2009/09/27 02:47:11
|
Line 171 Your cookie information is incorrect.
|
Line 171 Your cookie information is incorrect.
|
</body> |
</body> |
</html> |
</html> |
END |
END |
exit; |
return; |
} |
} |
|
|
my %perlvar=%{&LONCAPA::Configuration::read_conf('loncapa.conf')}; |
my %perlvar=%{&LONCAPA::Configuration::read_conf('loncapa.conf')}; |
&Apache::lonlocal::get_language_handle(); |
&Apache::lonlocal::get_language_handle(); |
&Apache::loncommon::content_type(undef,'text/html'); |
&Apache::loncommon::content_type(undef,'text/html'); |
$env{'request.noversionuri'} = '/cgi-bin/printout.pl'; |
$env{'request.noversionuri'} = '/cgi-bin/printout.pl'; |
print(&Apache::loncommon::start_page('Creating PDF')); |
# Breadcrumbs |
|
#FIXME: Choose better/different breadcrumbs?!? Links? |
|
my $brcrum = [{'href' => '', |
|
'text' => 'Helper'}, #FIXME: Different origin possible than print out helper? |
|
{'href' => '', |
|
'text' => 'Preparing Printout'}, |
|
{'href' => '', |
|
'text' => 'Creating PDF'}]; |
|
print(&Apache::loncommon::start_page('Creating PDF', |
|
undef, |
|
{'bread_crumbs' => $brcrum,})); |
|
|
my $identifier = $ENV{'QUERY_STRING'}; |
my $identifier = $ENV{'QUERY_STRING'}; |
my $texfile = $env{'cgi.'.$identifier.'.file'}; |
my $texfile = $env{'cgi.'.$identifier.'.file'}; |
Line 475 foreach $texfile (@texfile) {
|
Line 485 foreach $texfile (@texfile) {
|
if ($laystyle eq 'album' and $numberofcolumns eq '2') { |
if ($laystyle eq 'album' and $numberofcolumns eq '2') { |
$comma = "psnup $papera -2 -s1.0 $new_name_file"; |
$comma = "psnup $papera -2 -s1.0 $new_name_file"; |
&debug("PSNUP command: $comma"); |
&debug("PSNUP command: $comma"); |
&busy_wait_command("$comma 1>$tempo_file 2>/dev/null", |
&busy_wait_command("$comma $tempo_file 1>/dev/null 2>/dev/null", |
"for $status_statement now Modifying PS layout", |
"for $status_statement now Modifying PS layout", |
\%prog_state,$tempo_file); |
\%prog_state,$tempo_file); |
&busy_wait_command("mv $tempo_file $new_name_file", |
|
'File move', \%prog_state, $new_name_file); |
|
} elsif ($laystyle eq 'book' and $numberofcolumns eq '2') { |
} elsif ($laystyle eq 'book' and $numberofcolumns eq '2') { |
$comma = 'pstops '.$papera.' "2:0+1(0.48w,0)" '.$new_name_file; |
$comma = 'pstops '.$papera.' "2:0+1(0.48w,0)" '.$new_name_file; |
&debug("PSTOPS command: $comma "); |
&debug("PSTOPS command: $comma "); |