Skip to content

Instantly share code, notes, and snippets.

@groupdocs-com-kb
Last active February 22, 2025 07:49
Convert PDF to Presentation using Node.js. For more information, please follow link: https://kb.groupdocs.com/conversion/nodejs/convert-pdf-to-presentation-using-nodejs/
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");
const options = new conversion.PresentationConvertOptions();
options.setFormat(conversion.PresentationFileType.Pptx);
// Save output PPTX to disk
converter.convert("output.pptx", options);
process.exit(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment