NConvert is quite and not creating any image file
Posted: Mon May 04, 2009 9:59 pm
I am new to xnview/nconvert tool. I would like to use nconver to convert my pdf file into jpg format.
Here is the code snippet of my app..
Sub ConvertToJPG(ByVal SourceFile, ByVal ToFile)
Dim strcmd As String
Dim objshell
strcmd = Chr(34) & "c:\program files\xnview\nconvert.exe" & Chr(34) & " -quiet -dpi 72 -out jpeg -o " & Chr(34) & ToFile & Chr(34) & " " & Chr(34) & SourceFile & Chr(34)
'WriteToLogFileImageConvert strcmd
objshell = CreateObject("Wscript.shell")
objshell.Run(strcmd, 0, True)
'objshell.Exec strcmd
objshell = Nothing
End Sub
It executes without any error. but its not creating any jpg file. My sourcefile is C:\Images\123.pdf and ToFile is c:\Images\123.jpg.
Am I missing anything else here? Please help me to fix this...
Thanks
Here is the code snippet of my app..
Sub ConvertToJPG(ByVal SourceFile, ByVal ToFile)
Dim strcmd As String
Dim objshell
strcmd = Chr(34) & "c:\program files\xnview\nconvert.exe" & Chr(34) & " -quiet -dpi 72 -out jpeg -o " & Chr(34) & ToFile & Chr(34) & " " & Chr(34) & SourceFile & Chr(34)
'WriteToLogFileImageConvert strcmd
objshell = CreateObject("Wscript.shell")
objshell.Run(strcmd, 0, True)
'objshell.Exec strcmd
objshell = Nothing
End Sub
It executes without any error. but its not creating any jpg file. My sourcefile is C:\Images\123.pdf and ToFile is c:\Images\123.jpg.
Am I missing anything else here? Please help me to fix this...
Thanks