const conversion = require('@groupdocs/groupdocs.conversion') const licensePath = "GroupDocs.Search.lic"; const license = new conversion.License() license.setLicense(licensePath); // Load the input PDF file const converter = new conversion.Converter("sample.pdf"); // Set the convert options for PNG format const options = new conversion.ImageConvertOptions(); options.setFormat(conversion.ImageFileType.Png); // Save output PNG to disk converter.convert("output.png", options); process.exit(0);