Skip to content

Instantly share code, notes, and snippets.

View aspose-com-kb's full-sized avatar

aspose-com-kb

View GitHub Profile
@aspose-com-kb
aspose-com-kb / Add Transitions to PowerPoint in Python.py
Created September 25, 2026 15:50
Add Transitions to PowerPoint in Python.
import aspose.slides as slides
def find_shape(slide, name):
for shape in slide.shapes:
if shape.name == name:
return shape
raise ValueError("Shape '" + name + "' not found.")
def main():
slides.License().set_license("license.lic")
@aspose-com-kb
aspose-com-kb / Add Transitions to PowerPoint in Java.java
Created September 25, 2026 13:29
Add Transitions to PowerPoint in Java.
import com.aspose.slides.*;
import java.awt.Color;
public class AddTransitions
{
public static void main(String[] args) throws Exception
{
new License().setLicense("license.lic");
@aspose-com-kb
aspose-com-kb / Add Transitions to PowerPoint using C#.cs
Created September 24, 2026 17:18
Add Transitions to PowerPoint using C#.
using System;
using System.Drawing;
using Aspose.Slides;
using Aspose.Slides.Export;
using Aspose.Slides.SlideShow;
namespace SlideTransitionsDemo
{
class Program
{
@aspose-com-kb
aspose-com-kb / Remove Notes from PowerPoint using C#.cs
Created September 23, 2026 11:47
Remove Notes from PowerPoint using C#.
using Aspose.Slides;
using Aspose.Slides.Export;
class Program
{
static void Main()
{
// Load the presentation
using (Presentation presentation = new Presentation("AddNotes_out.pptx"))
{
@aspose-com-kb
aspose-com-kb / Add Notes to PowerPoint using Python.py
Created September 22, 2026 17:36
Add Notes to PowerPoint using Python.
import os
import aspose.slides as slides
from aspose.slides.export import SaveFormat
def main():
# Load Aspose license, if one is available
license_path = "license.lic"
if os.path.exists(license_path):
import com.aspose.slides.*;
import java.awt.Color;
public class AddNotesExample {
public static void main(String[] args) {
// Apply the Aspose.Slides license
License license = new License();
license.setLicense("license.lic");
Presentation presentation = new Presentation();
using System.Drawing;
using Aspose.Slides;
namespace AddNotesExample
{
class Program
{
static void Main(string[] args)
{
// Apply the Aspose.Slides license
import os
import aspose.slides as slides
from aspose.slides.export import SaveFormat
def main():
# Load Aspose license
license_path = "license.lic"
if os.path.exists(license_path):
import com.aspose.slides.FillType;
import com.aspose.slides.IAutoShape;
import com.aspose.slides.IPPImage;
import com.aspose.slides.IPictureFrame;
import com.aspose.slides.ISlide;
import com.aspose.slides.License;
import com.aspose.slides.Presentation;
import com.aspose.slides.SaveFormat;
import com.aspose.slides.ShapeType;
using System;
using System.IO;
using Aspose.Slides;
using Aspose.Slides.Export;
namespace AsposeSlidesGifSample
{
class Program
{
static void Main(string[] args)