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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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