Example #1
0
        public virtual void ReadStringLongerThenDataTest()
        {
            String data = "/Name1 15";
            RandomAccessSourceFactory factory = new RandomAccessSourceFactory();
            PdfTokenizer tok = new PdfTokenizer(new RandomAccessFileOrArray(factory.CreateSource(data.GetBytes(iText.IO.Util.EncodingUtil.ISO_8859_1
                                                                                                               ))));

            NUnit.Framework.Assert.AreEqual(data, tok.ReadString(data.Length + 10));
        }