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);
     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();
 }

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.
getDisableFontLigatures()Gets or sets a value indicating whether text is rendered without using ligatures.
setDisableFontLigatures(boolean value)Gets or sets a value indicating whether text is rendered without using ligatures.

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

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

     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 final IInkOptions getInkOptions()

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

Returns: IInkOptions

getDisableFontLigatures()

public final boolean getDisableFontLigatures()

Gets or sets a value indicating whether text is rendered without using ligatures. When set to true, ligatures will be disabled in the rendered output. By default, this property is set to false.


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

     IImage[] renderedSlides = pres.getImages(options);
     for (int index = 0; index < renderedSlides.length; index++)
     {
         IImage slideImage = renderedSlides[index];
         slideImage.save("slide-" + index + ".png");
     }
 } finally {
     if (pres != null) pres.dispose();
 }

Returns: boolean

setDisableFontLigatures(boolean value)

public final void setDisableFontLigatures(boolean value)

Gets or sets a value indicating whether text is rendered without using ligatures. When set to true, ligatures will be disabled in the rendered output. By default, this property is set to false.


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

     IImage[] renderedSlides = pres.getImages(options);
     for (int index = 0; index < renderedSlides.length; index++)
     {
         IImage slideImage = renderedSlides[index];
         slideImage.save("slide-" + index + ".png");
     }
 } finally {
     if (pres != null) pres.dispose();
 }

Parameters:

ParameterTypeDescription
valueboolean