From 1eec881f21499a178b07a77a7505e0ca94e56abd Mon Sep 17 00:00:00 2001 From: tetragon Date: Tue, 2 Oct 2007 14:45:23 +0000 Subject: Correcting Postscript mimetype git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1688 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Template/LaTeX.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'LedgerSMB/Template') 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"; } -- cgit v1.2.3