RenderingOptions

Inheritance: java.lang.Object, com.aspose.slides.SaveOptions

All Implemented Interfaces: com.aspose.slides.IRenderingOptions

public class RenderingOptions extends SaveOptions implements IRenderingOptions

Provides options that control how a presentation/slide is rendered.


Presentation pres = new Presentation("pres.pptx");
 try {
     IRenderingOptions renderingOpts = new RenderingOptions();
     renderingOpts.getNotesCommentsLayouting().setNotesPosition(NotesPositions.BottomTruncated);

     ImageIO.write(pres.getSlides().get_Item(0).getThumbnail(renderingOpts), "PNG", new File("pres-Original.png"));

     renderingOpts.setDefaultRegularFont("Arial Black");
     ImageIO.write(pres.getSlides().get_Item(0).getThumbnail(renderingOpts), "PNG", new File("pres-ArialBlackDefault.png"));

     renderingOpts.setDefaultRegularFont("Arial Narrow");
     ImageIO.write(pres.getSlides().get_Item(0).getThumbnail(renderingOpts), "PNG", new File("pres-ArialNarrowDefault.png"));
 } catch (IOException e) {
 } finally {
     if (pres != null) pres.dispose();
 }

Constructors

ConstructorDescription
RenderingOptions()Default constructor.

Methods

MethodDescription
getSlidesLayoutOptions()Gets or sets the mode in which slides are placed on the page when exporting a presentation ISlidesLayoutOptions.
setSlidesLayoutOptions(ISlidesLayoutOptions value)Gets or sets the mode in which slides are placed on the page when exporting a presentation ISlidesLayoutOptions.
getInkOptions()Provides options that control the look of Ink objects in exported document.

RenderingOptions()

public RenderingOptions()

Default constructor.

getSlidesLayoutOptions()

public final ISlidesLayoutOptions getSlidesLayoutOptions()

Gets or sets the mode in which slides are placed on the page when exporting a presentation ISlidesLayoutOptions.


Example:
 
 Presentation pres = new Presentation("pres.pptx");
 try {
     RenderingOptions options = new RenderingOptions();

     HandoutLayoutingOptions slidesLayoutOptions = new HandoutLayoutingOptions();
     slidesLayoutOptions.setHandout(HandoutType.Handouts4Horizontal);
     slidesLayoutOptions.setPrintSlideNumbers(false);
     options.setSlidesLayoutOptions(slidesLayoutOptions);

     BufferedImage[] handoutSlides = pres.getThumbnails(options);
     for (int index = 0; index < handoutSlides.length; index++)
     {
         ImageIO.write(handoutSlides[index], "PNG", new java.io.File("handout-" + index + ".png"));
     }
 } catch (IOException e) {
 } finally {
     if (pres != null) pres.dispose();
 }

Returns: ISlidesLayoutOptions

setSlidesLayoutOptions(ISlidesLayoutOptions value)

public final void setSlidesLayoutOptions(ISlidesLayoutOptions value)

Gets or sets the mode in which slides are placed on the page when exporting a presentation ISlidesLayoutOptions.


Example:
 
 Presentation pres = new Presentation("pres.pptx");
 try {
     RenderingOptions options = new RenderingOptions();

     HandoutLayoutingOptions slidesLayoutOptions = new HandoutLayoutingOptions();
     slidesLayoutOptions.setHandout(HandoutType.Handouts4Horizontal);
     slidesLayoutOptions.setPrintSlideNumbers(false);
     options.setSlidesLayoutOptions(slidesLayoutOptions);

     BufferedImage[] handoutSlides = pres.getThumbnails(options);
     for (int index = 0; index < handoutSlides.length; index++)
     {
         ImageIO.write(handoutSlides[index], "PNG", new java.io.File("handout-" + index + ".png"));
     }
 } catch (IOException e) {
 } finally {
     if (pres != null) pres.dispose();
 }

Parameters:

ParameterTypeDescription
valueISlidesLayoutOptions

getInkOptions()

public final IInkOptions getInkOptions()

Provides options that control the look of Ink objects in exported document. Read-only IInkOptions

Returns: IInkOptions