Converts the loaded XLSX 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 XLSX filevarconverter=newXlsxToPdfConverter("spreadsheet.xlsx");// Convert XLSX to PDFconverter.Convert("spreadsheet.pdf");
Example - Advanced conversion with options:
varconverter=newXlsxToPdfConverter("protected.xlsx",options=>{options.Password="12345";options.WorksheetIndex=1;// Convert second worksheet});converter.Convert("converted.pdf",convertOptions=>{convertOptions.Dpi=300;convertOptions.PageSize=PageSize.A4;});