diff --git a/core/document.cpp b/core/document.cpp index a0843628e3a61b91ada1fa2402b9417bc5e6111c..7200f391498de639f53158c121fd4dffe46c73d1 100644 --- a/core/document.cpp +++ b/core/document.cpp @@ -138,7 +138,8 @@ bool KPDFDocument::openDocument( const QString & docFile, const KURL & url ) // create the generator based on the file's mimetype KMimeType::Ptr mime = KMimeType::findByPath( docFile ); QString mimeName = mime->name(); - if ( mimeName == "application/pdf" ) + if ( mimeName == "application/pdf" || + mimeName == "application/x-pdf" ) generator = new PDFGenerator( this ); /* else if ( mimeName == "application/postscript" ) kdError() << "PS generator not available" << endl;*/