diff options
-rwxr-xr-x | LedgerSMB/Template/LaTeX.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/LedgerSMB/Template/LaTeX.pm b/LedgerSMB/Template/LaTeX.pm index 77e2a2d4..06c4b8c4 100755 --- a/LedgerSMB/Template/LaTeX.pm +++ b/LedgerSMB/Template/LaTeX.pm @@ -118,10 +118,12 @@ sub process { "$parent->{outputfile}.$format", binmode => 1)) { throw Error::Simple $template->error(); } - if ($format eq 'dvi') { + if (lc $format eq 'dvi') { $parent->{mimetype} = 'application/x-dvi'; + } elsif (lc $format eq 'pdf') { + $parent->{mimetype} = 'application/pdf'; } else { - $parent->{mimetype} = 'application/$format'; + $parent->{mimetype} = 'application/postscript'; } $parent->{rendered} = "$parent->{outputfile}.$format"; } |