Convert PDF to PPTX in Node.js
Convert PDF files to PPTX with Aspose.Slides for Node.js via Java.
Convert PDF to PPTX in Node.js
Aspose.Slides for Node.js via Java
lets you import PDF files into a presentation and save the result as PPTX. With this Node.js API, you can convert PDF content without Adobe Acrobat.
Convert PDF to PPTX using Node.js
To convert PDF to PPTX, create a Presentation, import the source file with addFromPdf, and save the presentation with SaveFormat.Pptx.
Node.js code to convert PDF to PPTX
const presentation = new aspose.slides.Presentation();
try {
presentation.getSlides().removeAt(0);
presentation.getSlides().addFromPdf("sourceFile.pdf");
presentation.save("output.pptx", aspose.slides.SaveFormat.Pptx);
}
finally {
presentation.dispose();
}
How to convert PDF to PPTX using Aspose.Slides for Node.js via Java API
To convert PDF to PPTX using Aspose.Slides for Node.js via Java, import the package, import the source file into a presentation, and export it in the required format.
Install Aspose.Slides for Node.js via Java .
Import the
aspose.slides.via.javapackage in your Node.js project.Import the source
PDFfile withaddFromPdf.Call the
savemethod with the output file path andSaveFormat.Pptx.
Convert PDF to Other Supported Formats
You can also convert PDF files to other supported presentation and export formats.