private int UpdatePageCountHack(FonetEventArgs i, ref int pages)
		{
			var m = rxPages.Match(i.GetMessage());
			if (m != null && m.Success)
				pages += Convert.ToInt32(m.Groups[1].Value);
			return pages;
		}
Exemple #2
0
        void driver_OnInfo(object driver, FonetEventArgs e)
        {
            string message = e.GetMessage();
            int progess = -1;
            if (message.Equals("Building formatting object tree"))
                progess = 5;
            else if(message.StartsWith("[") && message.EndsWith("]"))
                progess = GetProgressFromPage(message);

            if (progess != -1)
                OnUpdateProgress(progess);
        }