The use of Ghostscript is preferable.Tips?
Is this question LabVIEW related? Or do you just want to read the GhostScript manual?
Thanks for the reply.
The idea is just to call GS using precisely System Exec.vi but I can not make it work properly.
In input I have the path where the jpg file is saved, the name with which I want to rename the pdf and the path where to save the pdf.
Any example ?
have you tried the same in a standard Windows command shell?
Does it work here?
Which command do you use?
Any example ?
Does it work from the command line? That should be the first step.
If it does, then you only need to get the string passed to the System Exec.vi to match this string. I'd skip calling the System Exec.vi and use an indicator or popup to get it working. If that seems to be the problem, post what you have.
for the most simplest implementation is used jpeg2pdf.exe
Its a 43 kb executable.
Call is from cmd exec: cmd /c jpeg2pdf.exe "%s" -o "%s"
Where the first %s indicates the filename of the .jpg
2nd %s is the target path of the PDF
Location of .exe http://sourceforge.net/projects/jpeg2pdf/
Upside : no installation of other software required
Downside , the source .jpg file has to be in the same folder as the .exe to work.
Thanks for the reply, I have adopted the solution proposed by mr but I still have problems.
From Windows command shell it works correctly (as you can see in the picture "cattura1" attached) but when I go to implement it on LabVIEW, it gives me the error that I reported in the picture "cattura2".
What am I doing wrong?
Thanks for your help
set the working directory with SysExec…