Page 1 of 1

NConvert is quite and not creating any image file

Posted: Mon May 04, 2009 9:59 pm
by abcuser
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

Re: NConvert is quite and not creating any image file

Posted: Tue May 05, 2009 7:09 am
by xnview
Try to remove -quiet to have error message?

Re: NConvert is quite and not creating any image file

Posted: Tue May 05, 2009 2:14 pm
by abcuser
I tried without -quite and its the same :-( Its not giving any error message and its not creating any images also. Please help me to fix this...

Thanks

Re: NConvert is quite and not creating any image file

Posted: Tue May 05, 2009 2:20 pm
by xnview
abcuser wrote:I tried without -quite and its the same :-( Its not giving any error message and its not creating any images also. Please help me to fix this...
Are you sure that nconvert is launched?

Re: NConvert is quite and not creating any image file

Posted: Wed May 06, 2009 4:38 pm
by abcuser
Yes.