Converts the loaded XLS document to PDF and saves it to the specified file path. (2 methods)
Remarks
Example - Basic conversion:
usingGroupDocs.Conversion.LowCode;// Load license keysvarpublicKey=Environment.GetEnvironmentVariable("GD_PUBLIC_KEY");varprivateKey=Environment.GetEnvironmentVariable("GD_PRIVATE_KEY");// Apply the licenseLicense.Set(publicKey,privateKey);// Create a converter for the XLS filevarconverter=newXlsToPdfConverter("legacy-spreadsheet.xls");// Convert XLS to PDFconverter.Convert("legacy-spreadsheet.pdf");
Example - Advanced conversion with options:
varconverter=newXlsToPdfConverter("protected.xls",options=>{options.Password="12345";options.WorksheetIndex=1;// Convert second worksheetoptions.ShowHiddenSheets=true;});converter.Convert("converted.pdf",convertOptions=>{convertOptions.Dpi=300;});