IRenderingOptions

All Implemented Interfaces: com.aspose.slides.ISaveOptions

public interface IRenderingOptions extends ISaveOptions

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


Presentation pres = new Presentation("pres.pptx");
 try {
     IRenderingOptions renderingOpts = new RenderingOptions();
     NotesCommentsLayoutingOptions notesCommentsLayoutingOptions = new NotesCommentsLayoutingOptions();
     notesCommentsLayoutingOptions.setNotesPosition(NotesPositions.BottomTruncated);
     renderingOpts.setSlidesLayoutOptions(notesCommentsLayoutingOptions);
     FileOutputStream out = new FileOutputStream("pres-Original.png");
     pres.getSlides().get_Item(0).getThumbnail(renderingOpts).compress(android.graphics.Bitmap.CompressFormat.JPEG, 100, out);
     out.flush();
     out.close();
     renderingOpts.setDefaultRegularFont("Arial Black");
     FileOutputStream out = new FileOutputStream("pres-ArialBlackDefault.png");
     pres.getSlides().get_Item(0).getThumbnail(renderingOpts).compress(android.graphics.Bitmap.CompressFormat.JPEG, 100, out);
     out.flush();
     out.close();
     renderingOpts.setDefaultRegularFont("Arial Narrow");
     FileOutputStream out = new FileOutputStream("pres-ArialNarrowDefault.png");
     pres.getSlides().get_Item(0).getThumbnail(renderingOpts).compress(android.graphics.Bitmap.CompressFormat.JPEG, 100, out);
     out.flush();
     out.close();
 } catch (IOException e) {
 } finally {
     if (pres != null) pres.dispose();
 }

Methods

MethodDescription
getNotesCommentsLayouting()Provides options that control how notes and comments is placed in exported document.
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.

getNotesCommentsLayouting()

public abstract INotesCommentsLayoutingOptions getNotesCommentsLayouting()

Provides options that control how notes and comments is placed in exported document.

Returns: INotesCommentsLayoutingOptions

getSlidesLayoutOptions()

public abstract 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);

     android.graphics.Bitmap[] handoutSlides = pres.getThumbnails(options);
     for (int index = 0; index < handoutSlides.length; index++)
     {
         FileOutputStream out = new FileOutputStream("handout-" + index + ".png");
         handoutSlides[index].compress(android.graphics.Bitmap.CompressFormat.PNG, 100, out);
         out.flush();
         out.close();
     }
 } catch (IOException e) {
 } finally {
     if (pres != null) pres.dispose();
 }

Returns: ISlidesLayoutOptions

setSlidesLayoutOptions(ISlidesLayoutOptions value)

public abstract 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);

     android.graphics.Bitmap[] handoutSlides = pres.getThumbnails(options);
     for (int index = 0; index < handoutSlides.length; index++)
     {
         FileOutputStream out = new FileOutputStream("handout-" + index + ".png");
         handoutSlides[index].compress(android.graphics.Bitmap.CompressFormat.PNG, 100, out);
         out.flush();
         out.close();
     }
 } catch (IOException e) {
 } finally {
     if (pres != null) pres.dispose();
 }

Parameters:

ParameterTypeDescription
valueISlidesLayoutOptions

getInkOptions()

public abstract IInkOptions getInkOptions()

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

Returns: IInkOptions