Thanks a lot ArnelGP for your patience with me. I did it and it worked but only converts the jpg not the pdf. So i have 8 jpgs and 2 pdf files in the folder and it creates a pdf file only with the 8 jpgs files not also with the 2 pdfs.
I used
inPath = "C:\MIHAI\DOC\ASIG\DOSARE\X\*.*"
outPath = "C:\MIHAI\DOC\ASIG\DOSARE\X\Output.pdf"
Thanks a lot again.![]()