using GroupDocs.Conversion; using GroupDocs.Conversion.Options.Convert; namespace ConvertJPGtoPDFUsingCSharp { internal class Program { static void Main(string[] args) { // Set License to avoid the limitations of Conversion library License lic = new License(); lic.SetLicense(@"GroupDocs.Conversion.lic"); // Load the source JPG file using (var converter = new Converter("input.jpg")) { // Set the convert options for PDF format var options = new PdfConvertOptions(); // Convert to PDF format converter.Convert("converted.pdf", options); } } } }