Skip to content

Instantly share code, notes, and snippets.

@groupdocs-com-kb
Last active February 22, 2025 07:49

Revisions

  1. groupdocs-com-kb revised this gist Feb 22, 2025. No changes.
  2. groupdocs-com-kb created this gist Feb 18, 2025.
    16 changes: 16 additions & 0 deletions Convert PDF to Presentation using Node.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    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);