Beispiel #1
0
        //The alternative content type description (PDF has 2 IANA reserved content-types)

        #endregion

        #region Constructor and Singleton Instance members

        /// <summary>
        /// The constructor is private so that only the class itself can create an instance.
        /// </summary>
        private PdfParser()
        {
            //Initialize the synchronization mechanism
            mutex = new Mutex();
            //Initialize the encoding
            encoding = Encoding.GetEncoding("ISO-8859-7");
            //Initialize the converters and parsers
            converter = new CPdf2TextConverterClass();
            parser    = TextParser.Instance();
            //Get a reference to the global variables and application settings
            globals = Globals.Instance();
        }
Beispiel #2
0
 /// <summary>
 /// The constructor is private so that only the class itself can create an instance.
 /// </summary>
 private PdfParser()
 {
     //Initialize the synchronization mechanism
     mutex=new Mutex();
     //Initialize the encoding
     encoding=Encoding.GetEncoding("ISO-8859-7");
     //Initialize the converters and parsers
     converter = new CPdf2TextConverterClass();
     parser = TextParser.Instance();
     //Get a reference to the global variables and application settings
     globals = Globals.Instance();
 }