Rendering a Slide

Creating Slides Thumbnail Image

Generating a Thumbnail from a Slide

To generate the thumbnail of any desired slide using Aspose.Slides for Java:

  1. Create an instance of the Presentation class.
  2. Obtain the reference of any desired slide by using its ID or index.
  3. Get the thumbnail image of the referenced slide on a specified scale.
  4. Save the thumbnail image in any desired image format.

Generating a Thumbnail from a Slide with User Defined Dimensions

To generate the thumbnail of any desired slide using Aspose.Slides for Java:

  1. Create an instance of the Presentation class.
  2. Obtain the reference of any desired slide by using its ID or index.
  3. Get the X and Y scaling factors based on user defined X and Y dimensions.
  4. Get the thumbnail image of the referenced slide on a specified scale.
  5. Save the thumbnail image in any desired image format.

Generating a Thumbnail from a Slide in Notes Slides View

To generate the thumbnail of any desired slide in Notes Slide View using Aspose.Slides for Java:

  1. Create an instance of the Presentation class.
  2. Obtain the reference of any desired slide by using its ID or index.
  3. Get the thumbnail image of the referenced slide on a specified scale in Notes Slide view.
  4. Save the thumbnail image in any desired image format.

Generating a Thumbnail of User Defined Window from a Slide

To generate the thumbnail of a user defined Window inside a desired slide using Aspose.Slides for Java, please follow the steps below:

  1. Create an instance of the Presentation class and load the presentation file.
  2. Obtain the reference of any desired slide by using its ID or index.
  3. Get the thumbnail image of the referenced slide on a specified scale.
  4. Get the desired window image inside the generate slide thumbnail using BufferedImage.getSubImage() method.
  5. Save the thumbnail image in any desired image format.

Creating Slides SVG Image

Generating an SVG Image from a Slide

To generate an SVG image from any desired slide using Aspose.Slides for Java, please follow the steps below:

  • Create an instance of the Presentation class.
  • Obtain the desired slide’s reference by using its ID or index.
  • Get the SVG image in a memory stream.
  • Save the memory stream to file.
todo:image_alt_text
Figure : Sample SVG image created from a PowerPoint slide

Generating an SVG With Custom Shape IDS

Now Aspose.Slides for Java can be used to generate SVG from slide with custom shape ID. These slides can be viewed by opening presentations using Microsoft PowerPoint. But sometimes, developers may also need to view slides as SVG images in their favorite image viewer. In such cases, Aspose.Slides for Java lets you export an individual slide to an SVG image.For that purpose ID property has been added to ISvgShape to support custom IDs of shapes in generated SVG.  To implement this feature a CustomSvgShapeFormattingController has been introduced that you can use to set shape ID.