public static List < Action > interpret ( File file ) throws IOException { checkNotNull ( file ) ; Interpreter interpreter = new DefaultInterpreter ( ) ; SlidesReader reader = new PPTXSlidesReader ( ) ; List < Slide > slides ; slides = reader . read ( file ) ; List < Action > actions = Lists . newArrayList ( ) ; for ( Slide slide : slides ) { Action action = interpreter . interpret ( slide ) ; actions . add ( action ) ; logger . info ( "Action interpreted: {}" , action ) ; } return actions ; }
Interpret a presentation file as a list of executable actions