Convert PDF to PPTX in Go
Contents
[
Hide
]
Convert PDF to PPTX
The provided Go code snippet demonstrates how to convert a PDF document into a PPTX using the Aspose.PDF library:
- Open a PDF document.
- Convert a PDF file to PPTX using SavePptx function.
- Close the PDF document and release any allocated resources.
package main
import "github.com/aspose-pdf/aspose-pdf-go-cpp"
import "log"
func main() {
// Open(filename string) opens a PDF-document with filename
pdf, err := asposepdf.Open("sample.pdf")
if err != nil {
log.Fatal(err)
}
// SavePptX(filename string) saves previously opened PDF-document as PptX-document with filename
err = pdf.SavePptX("sample.pptx")
if err != nil {
log.Fatal(err)
}
// Close() releases allocated resources for PDF-document
defer pdf.Close()
}
Try to convert PDF to PowerPoint online
Aspose.PDF for Go presents you online free application “PDF to PPTX”, where you may try to investigate the functionality and quality it works.