Beispiel #1
0
        private long findXref()
        {
            long startxref = _lexer.FindLastSubstring("startxref");

            if (startxref < 0)
            {
                throw new InvalidDocumentException();
            }

            _lexer.Position = startxref + 9;
            bool succes;

            startxref = _lexer.ReadInteger(out succes);
            if (!succes || startxref < 0)
            {
                return(0);
            }
            return(startxref);
        }