private void OnFinished(IntPtr converter, int success)
        {
            Tracer.Trace(string.Format("T:{0} Conversion Finished: {1}", Thread.CurrentThread.Name, success != 0 ? "Succeeded" : "Failed"));

            try
            {
                if (Finish != null)
                {
                    var args = new FinishEventArgs
                    {
                        Document = ProcessingDocument,
                        Success  = success != 0
                    };

                    Finish(this, args);
                }
            }
            catch (Exception e)
            {
                Tracer.Warn(string.Format("T:{0} Exception in Finish event handler", Thread.CurrentThread.Name), e);
            }
        }
        private void OnFinished(IntPtr converter, int success)
        {
            Tracer.Trace(string.Format("T:{0} Conversion Finished: {1}", Thread.CurrentThread.Name, success != 0 ? "Succeeded" : "Failed"));

            try
            {
                if (Finish != null)
                {
                    var args = new FinishEventArgs
                    {
                        Document = ProcessingDocument,
                        Success = success != 0
                    };

                    Finish(this, args);
                }
            }
            catch (Exception e)
            {
                Tracer.Warn(string.Format("T:{0} Exception in Finish event handler", Thread.CurrentThread.Name), e);
            }
        }