1. Products
  2.   Presentation
  3.   GO
  4.   Aspose.Slides Cloud SDK for Go

Aspose.Slides Cloud SDK for Go

 
 

GO SDK - Create & Convert PowerPoint Presentations

Cloud-Based SDK allows software developers to Create, Read, Edit, Protect & Convert PowerPoint PPT/PPTX Presentations in the cloud.

Aspose.Slides Cloud SDK for Go is a dominant and comprehensive cloud-based SDK that allows developers to create, edit, and manipulate PowerPoint presentations using the Go programming language. The SDK helps software developers to easily integrate advanced PowerPoint presentation functionalities into their Go-based applications, such as creating, editing, and deleting slides, adding shapes, text, and multimedia content, applying formatting, and much more. The Go cloud SDK is based on the top of Aspose.Slides REST API and work smoothly without installing any third-party software.

Aspose.Slides Cloud SDK for Go is optimized for high performance, with features such as asynchronous API calls and multithreaded processing to ensure fast and efficient execution. It enables software developers to create and modify PowerPoint presentations programmatically inside their own applications. There are several important features part of the library, such as creating presentations from the scratch, inserting new slides, merging/split presentations, extracting a slide from presentations, copying slides contents, managing themes, adding & extract images from presentations, adding &extract shapes, manage hyperlinks and many more.

As a cloud-based SDK, Aspose.Slides Cloud SDK for Go offers a cost-effective solution for developers who want to add advanced PowerPoint presentation functionalities to their applications without investing in expensive software or hardware. With its cross-platform compatibility, ease of use, high performance, and cost-effectiveness, it is an excellent choice for developers who want to add advanced PowerPoint presentation functionalities to their applications. However, developers should also consider the limitations of the SDK, such as the requirement for an internet connection and limited customization options.

Previous Next

Getting Started with Aspose.Slides Cloud SDK for Go

The recommend way to install Aspose.Slides Cloud SDK for Go is using GitHub.. To install the SDK on your system, please run the following command:

Install Aspose.Slides Cloud SDK for Go via GitHub

slides get github.com/aspose-slides-cloud/aspose-slides-cloud-slides 
You can also download it directly from Aspose product release page.

Create & Manage Presentation via Go API

Aspose.Slides Cloud SDK for Go has provided complete support for creating and modifying PPT and PPTX presentations inside Go applications. The SDK supports creating presentations in various popular presentation file formats such as PPT, PPTX, PPS, PPSX, PPTM, PPSM, POTX, POTM, ODP, OTP, and many more. There are several other important features part of the library for managing presentations in the cloud, such as adding new slides to existing presentations, adding & update slide notes, creating a presentation from HTML, creating a new presentation using a template, deleting unwanted slides from presentation, split or merge existing presentation, add animation to presentations, and many more.

Add, Manage & Convert Presentation’s Slides via Go API

Aspose.Slides Cloud SDK for Go has included complete support for handling slides inside PowerPoint presentations. There are several important features part of the library for working with slides, such as adding new slides to presentations, extracting slides from a presentation, deleting unwanted slides, copying slides from one presentation to another, moving slides to another position in a presentation, managing background presentation’s slide, manage slide comments, add comments to slide, get slide information, get the number of slide from a presentation and many more.

Add Comments to Presentation’s Slide via Go API

cfg := asposeslidescloud.NewConfiguration()
cfg.AppSid = "MyClientId"
cfg.AppKey = "MyClientSecret"
api := asposeslidescloud.NewAPIClient(cfg)

dto := asposeslidescloud.NewSlideComment()
dto.Text = "Comment text"
dto.Author = "Author Name"
childComment := asposeslidescloud.NewSlideComment()
childComment.Text = "Child comment text"
childComment.Author = "Author Name"
childComments := []asposeslidescloud.ISlideCommentBase { childComment }
dto.ChildComments = childComments
comments, _, e := api.SlidesApi.CreateComment("MyPresentation.pptx", 3, dto, nil, "", "", "")
if e != nil {
    fmt.Printf("Error: %v.", e)
    return
}
fmt.Printf("The slide has %v comments", len(comments.GetList()))

Export PowerPoint Presentations via Go SDK

Aspose.Slides Cloud SDK for Go has provided some powerful features for converting PowerPoint presentations to various other support file formats using Go commands. Software developers to can convert presentations to PDF, XPS, TIFF,HTML, SWF, JPEG, PNG, GIF, BMP, FODP, XAML, MP4 and many more. It is also possible to convert selected slides, split or merge PowerPoint presentations, specify height or width of pages or images in an output document and many more. The following example demonstrates how to convert presentation’s to PDF file format.  

Export Presentation to PDF via Go SDK

cfg := asposeslidescloud.NewConfiguration()
cfg.AppSid = "my_client_id"
cfg.AppKey = "my_client_key"
api := asposeslidescloud.NewAPIClient(cfg)

source, e := ioutil.ReadFile("MyPresentation.pptx")
if e != nil {
    fmt.Printf("Error: %v.", e)
    return
}

result, _, e := api.SlidesApi.Convert(source, "pdf", "", "", "", []int32 { 2, 4 }, nil)
if e != nil {
    fmt.Printf("Error: %v.", e)
    return
}
fmt.Printf("The converted file was saved to  %v.", result.Name())

Insert & Manage Shapes in Presentation via Go API

Aspose.Slides Cloud SDK for Go has provided a complete set of features for working with shapes inside PowerPoint presentations using Go commands. It provides support for adding new shapes to presentations, managing shape properties, working with SmartArt graphics, working with Math formulas, extracting Shapes from a slide, adding & managing hyperlinks, working with geometry paths, working With zoom frames, adding and managing WordArt, importing shapes From SVG and many more. The following example demonstrates how to extract shapes from the Presentation slide using Go API.  

Extract Shapes from Presentations using Go API

cfg := asposeslidescloud.NewConfiguration()
cfg.AppSid = "MyClientId"
cfg.AppKey = "MyClientSecret"
api := asposeslidescloud.NewAPIClient(cfg)

// Get all shapes from the first slide.
allShapes, _, e := api.SlidesApi.GetShapes("MyPresentation.pptx", 1, "", "", "", "", "")
if e != nil {
    fmt.Printf("Error: %v.", e)
    return
}

// Get all charts from the first slide.
charts, _, e := api.SlidesApi.GetShapes("MyPresentation.pptx", 1, "", "", "", "Chart", "")
if e != nil {
    fmt.Printf("Error: %v.", e)
    return
}

// Print information about the shapes and charts.
shapeCount := len(allShapes.GetShapesLinks())
chartCount := len(charts.GetShapesLinks())
fmt.Printf("The slide contains %v shapes, including %v charts", shapeCount, chartCount)