251d250 < $text =~ s/ if ($prefs{localimgsonly}) > { > my $path = TWiki::Func::getPubDir(); > $text =~ s/ } > else > { > $text =~ s/ } 256a265 > UNLINK => !$prefs{debug}, # DEBUG 334a344,347 > # Create a pretty version of the topic, i.e. not a BumpyWord > my $ptopic = $topic; > $ptopic =~ s/([a-z0-9])([A-Z])/$1 $2/go; > 338c351 < $html = "

$topic

$html"; --- > $html = "

$ptopic

$html"; 359d371 < $html =~ s/ if ($prefs{localimgsonly}) > { > my $path = TWiki::Func::getPubDir(); > $html =~ s/ } > else > { > $html =~ s/ } 393a415,417 > $prefs{'path'} = $query->param('pdfpath') || TWiki::Func::getPreferencesValue("GENPDFADDON_PATH"); > $prefs{'path'} = '' unless defined $prefs{'path'}; > $prefs{'path'} =~ s/,/;/go; 422a447,448 > $prefs{'headfootsize'} = $query->param('pdfheadfootsize') || TWiki::Func::getPreferencesValue("GENPDFADDON_HEADFOOTSIZE") || ''; > $prefs{'headfootsize'} = undef unless ($prefs{'headfootsize'} =~ /^\d+$/); 435a462,463 > $prefs{'debug'} = $query->param('pdfdebug') || TWiki::Func::getPreferencesValue("GENPDFADDON_DEBUG") || ''; > $prefs{'localimgsonly'} = $query->param('pdflocalimgsonly') || TWiki::Func::getPreferencesValue("GENPDFADDON_LOCALIMGSONLY") || ''; 585c613 < #UNLINK => 0, # DEBUG --- > UNLINK => !$prefs{debug}, # DEBUG 597c625 < #UNLINK => 0, # DEBUG --- > UNLINK => !$prefs{debug}, # DEBUG 624a653 > push @htmldocArgs, "--path", "\"$prefs{'path'}\"" if $prefs{'path'}; 627a657 > push @htmldocArgs, "--headfootsize", "$prefs{'headfootsize'}" if $prefs{'headfootsize'}; 655a686,687 > # first fix the webname, as if it is hierarchical, it may have slashes in it > $webName =~ s/\/\./-/g; 660c692 < -Content_Disposition => $cd.'pdf'); --- > -Content_Disposition => "attachment; ".$cd.'pdf'); 664c696 < -Content_Disposition => $cd.'ps'); --- > -Content_Disposition => "attachment; ".$cd.'ps'); 668c700 < -Content_Disposition => $cd.'html' ); --- > -Content_Disposition => "attachment; ".$cd.'html' );