com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class RenderingOptions

  • All Implemented Interfaces:
    IRenderingOptions, ISaveOptions


    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"));
     } finally {
         if (pres != null) pres.dispose();
     }