/// <summary> /// Initialize plugin before document conversion. /// Start PowerPoint /// </summary> public void Init() { KillPowerPoint(); try { _builder = new PowerPointBuilder(); // setup progress delegate _builder.Progress = new ProgressDelegate(ProgressInfo); } catch (PowerPointApplicationException ex) { Messenger.Instance.SendMessage(ex.Message, MessageLevel.ERROR); throw ex; // propagate exception (to end document processing loop) } }
/// <summary> /// Conversion is completed, free plugin resources /// </summary> public void Done() { // close PowerPoint and opened presentations _builder.Close(); _builder = null; }