PATCH: mshtml: Register PDF MIME type.

Marcus Meissner meissner at
Fri Feb 17 11:06:09 CST 2012

As Johannes is not subscribed he asked me to mail it in.

From: Johannes Obermayr <johannesobermayr at>
Subject: [PATCH] mshtml: Register PDF MIME type.

This fixes an error by which ElsterFormular cannot make use of the default PDF viewer (e. g. Okular) but wants to have installed for example Windows versions of a PDF viewer (e. g. Foxit or SumatraPDF).

This implementation is based on

Signed-off-by: Johannes Obermayr <johannesobermayr at>
Tested-by: Johannes Obermayr <johannesobermayr at>
 dlls/mshtml/mshtml.inf |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/mshtml/mshtml.inf b/dlls/mshtml/mshtml.inf
index 8186c2d..d24cfaf 100644
--- a/dlls/mshtml/mshtml.inf
+++ b/dlls/mshtml/mshtml.inf
@@ -211,6 +211,12 @@ HKCR,".mpe","Content Type",,"video/mpeg"
 HKCR,".mpeg","Content Type",,"video/mpeg"
 HKCR,".mpg","Content Type",,"video/mpeg"
+;; PDF
+HKCR,"MIME\Database\Content Type\application/pdf","Extension",,".pdf"
+HKCR,".pdf","Content Type",,"application/pdf"
+HKCR,"pdffile\shell\open\command",,,"winebrowser ""%%1"""
 ;; PJPG
 HKCR,"MIME\Database\Content Type\image/pjpeg","CLSID",,"%CLSID_HTMLDocument%"
 HKCR,"MIME\Database\Content Type\image/pjpeg","Extension",,".jpg"

More information about the wine-patches mailing list