diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -76,7 +76,7 @@ PDFImage.prototype = {
     var outputImagePath = "\""+this.getOutputImagePathForPage(pageNumber)+"\"";
     var convertOptionsString = this.constructConvertOptions();
     return util.format(
-      "convert %s'%s[%d]' %s",
+      "convert %s'%s[%d]' '%s'",
       convertOptionsString ? convertOptionsString + " " : "",
       pdfFilePath, pageNumber, outputImagePath
     );
@@ -151,4 +151,4 @@ PDFImage.prototype = {
   }
 };
 
-exports.PDFImage = PDFImage;
\ No newline at end of file
+exports.PDFImage = PDFImage;
Update index.js

Added Single quotes to avoid file opening error when the file name contains spaces.