Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void ParsePage(dynamic parseObject)
- {
- try
- {
- int page = parseObject.Page;
- if (page == 2 && _parser.CheckImage(page)) return;
- if (page > 4 ) return;
- OtherPageEntities.AddRange(ParseOtherPages(_patternsClass, page));
- if (OtherPageEntities.Count == 0)
- OtherPageEntities.AddRange(ParseOtherPagesAddition(_patternsAddClass, page));
- }
- catch (InitFontException)
- {
- TypesError |= TypesError.InitFontError;
- }
- catch (CidToGlyphException)
- {
- TypesError |= TypesError.FindCidToGlyphIsError;
- }
- catch (OperationCanceledException)
- {
- TypesError |= TypesError.ParserCanceledException;
- }
- catch (Exception ex)
- {
- Console.WriteLine(ex.Message);
- if (ex.InnerException != null) Console.WriteLine(ex.InnerException.Message);
- Console.WriteLine(ex.StackTrace);
- //ignore error
- TypesError |= TypesError.ParsePageIsBad;
- }
- finally
- {
- if (Interlocked.Decrement(ref Parser.NumberOfThreadsNotYetCompleted) == 0)
- parseObject.DoneEvent.Set();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement