Last active
February 5, 2023 11:47
Revisions
-
aspose-com-kb revised this gist
Feb 5, 2023 . No changes.There are no files selected for viewing
-
aspose-com-kb revised this gist
Feb 3, 2023 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,13 +16,13 @@ svgContent = svgfile.read().rstrip() ppSVGImage = slides.SvgImage(svgContent) #Add an SVG Image from the disk inside the images collection of the presentation svgImageForSlide = sampleSvgPres.images.add_image(ppSVGImage) #Insert a picture frame inside the shapes collection of the slide slideForSvg.shapes.add_picture_frame(slides.ShapeType.RECTANGLE, 0, 0, 720, 540, svgImageForSlide) #Save the presentation in PPTX format with an SVG image on the disk slideForSvg.save(filepath + "PresentationWithSvg.pptx", slides.export.SaveFormat.PPTX) print("Process Completed") -
aspose-com-kb revised this gist
Feb 3, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ import aspose.slides as slides filepath = "C://Words//" #Applying the licence for Aspose.Slides to convert SVG to PPTX svgtoSlidesLicense = slides.License() svgtoSlidesLicense.set_license(filepath + "Conholdate.Total.Product.Family.lic") -
aspose-com-kb revised this gist
Feb 3, 2023 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,13 +16,13 @@ svgContent = svgfile.read().rstrip() ppSVGImage = slides.SvgImage(svgContent) #Add the SVG Image inside the images collection of the presentation svgImageForSlide = sampleSvgPres.images.add_image(ppSVGImage) # Create a picture frame in the shapes collection of the slide slideForSvg.shapes.add_picture_frame(slides.ShapeType.RECTANGLE, 0, 0, 720, 540, svgImageForSlide) #Save the PPTX presentation with an SVG image on the disk slideForSvg.save(filepath + "PresentationWithSvg.pptx", slides.export.SaveFormat.PPTX) print("Process Completed") -
aspose-com-kb revised this gist
Feb 3, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ #Access the first slide of the newly created presentation slideForSvg = sampleSvgPres.slides[0] #Load the SVG file content and insert that inside the presentation image collection with open(filepath + "410.svg", 'r') as svgfile: svgContent = svgfile.read().rstrip() ppSVGImage = slides.SvgImage(svgContent) -
aspose-com-kb revised this gist
Feb 3, 2023 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,15 +8,15 @@ # Make an empty presentation using the Presentation class object with slides.Presentation() as sampleSvgPres: #Access the first slide of the newly created presentation slideForSvg = sampleSvgPres.slides[0] #Access the SVG file content and add that inside the presentation image collection with open(filepath + "410.svg", 'r') as svgfile: svgContent = svgfile.read().rstrip() ppSVGImage = slides.SvgImage(svgContent) # Add the SVG Image inside the images collection of the presentation svgImageForSlide = sampleSvgPres.images.add_image(ppSVGImage) # Create a picture frame in the shapes collection of the slide -
aspose-com-kb revised this gist
Feb 3, 2023 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,11 @@ import aspose.slides as slides filepath = "C://Words//" # Applying the licence for Aspose.Slides to insert SVG svgtoSlidesLicense = slides.License() svgtoSlidesLicense.set_license(filepath + "Conholdate.Total.Product.Family.lic") # Make an empty presentation using the Presentation class object with slides.Presentation() as sampleSvgPres: # Access the first slide of the newly created presentation @@ -22,7 +22,7 @@ # Create a picture frame in the shapes collection of the slide slideForSvg.shapes.add_picture_frame(slides.ShapeType.RECTANGLE, 0, 0, 720, 540, svgImageForSlide) # Save the PPTX with SVG on the disk slideForSvg.save(filepath + "PresentationWithSvg.pptx", slides.export.SaveFormat.PPTX) print("Process Completed") -
aspose-com-kb renamed this gist
Feb 3, 2023 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
aspose-com-kb revised this gist
Feb 3, 2023 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,8 +14,7 @@ #Access the SVG file content and add that inside the presentation image collection with open(filepath + "410.svg", 'r') as svgfile: svgContent = svgfile.read().rstrip() ppSVGImage = slides.SvgImage(svgContent) # Include the Image inside the images collection of the presentation svgImageForSlide = sampleSvgPres.images.add_image(ppSVGImage) -
aspose-com-kb revised this gist
Feb 3, 2023 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -16,7 +16,6 @@ svgContent = svgfile.read().rstrip() #var svgContent = System.IO.File.ReadAllText(filesPath + "410.svg"); svgImage = slides.SvgImage(svgContent) # Include the Image inside the images collection of the presentation svgImageForSlide = sampleSvgPres.images.add_image(ppSVGImage) -
aspose-com-kb created this gist
Feb 3, 2023 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,31 @@ import aspose.slides as slides filepath = "C://Words//" # Applying the linence for Aspose.Slides to insert SVG svgtoSlidesLicense = slides.License() svgtoSlidesLicense.set_license(filepath + "Conholdate.Total.Product.Family.lic") # Make an empty presentation using Presentation class object with slides.Presentation() as sampleSvgPres: # Access the first slide of the newly created presentation slideForSvg = sampleSvgPres.slides[0] #Access the SVG file content and add that inside the presentation image collection with open(filepath + "410.svg", 'r') as svgfile: svgContent = svgfile.read().rstrip() #var svgContent = System.IO.File.ReadAllText(filesPath + "410.svg"); svgImage = slides.SvgImage(svgContent) ppSVGImage = sampleSvgPres.images.add_image(svgImage); # Include the Image inside the images collection of the presentation svgImageForSlide = sampleSvgPres.images.add_image(ppSVGImage) # Create a picture frame in the shapes collection of the slide slideForSvg.shapes.add_picture_frame(slides.ShapeType.RECTANGLE, 0, 0, 720, 540, svgImageForSlide) # Save the merged presentations as PDF on the disk slideForSvg.save(filepath + "PresentationWithSvg.pptx", slides.export.SaveFormat.PPTX) print("Process Completed")