Converting JPEG to PDF (Windows Project not Legacy)

I’ve seen many posts but I tried to do the one with the word scope application and for some reason it didn’t work. I was wondering what’s the best way to do that? Is there any better solution that not requires to open a Word file?

Thanks in advance

you can refer this post
they are using pdfsharp library which is open source