Example #1
0
        public virtual void SpecialCharactersTest()
        {
            String  str1  = " %()<>";
            String  str2  = "[]{}/#";
            PdfName name1 = new PdfName(str1);

            NUnit.Framework.Assert.AreEqual(str1, CreateStringByEscaped(name1.GetInternalContent()));
            PdfName name2 = new PdfName(str2);

            NUnit.Framework.Assert.AreEqual(str2, CreateStringByEscaped(name2.GetInternalContent()));
        }
Example #2
0
 private void Write(PdfName name)
 {
     WriteByte('/');
     WriteBytes(name.GetInternalContent());
 }