Esempio n. 1
0
        public virtual void SetAndGetBorderStylePdfNameTest()
        {
            PdfLineAnnotation pdfLineAnnotation = new PdfLineAnnotation(new PdfDictionary());

            pdfLineAnnotation.SetBorderStyle(PdfName.D);
            NUnit.Framework.Assert.AreEqual(PdfName.D, pdfLineAnnotation.GetBorderStyle().GetAsName(PdfName.S));
        }
Esempio n. 2
0
        public virtual void SetDashPatternTest()
        {
            PdfLineAnnotation pdfLineAnnotation = new PdfLineAnnotation(new PdfDictionary());
            PdfArray          array             = new PdfArray(new float[] { 1, 2 });

            pdfLineAnnotation.SetDashPattern(array);
            NUnit.Framework.Assert.AreEqual(array.ToFloatArray(), pdfLineAnnotation.GetBorderStyle().GetAsArray(PdfName
                                                                                                                .D).ToFloatArray());
        }
Esempio n. 3
0
        public virtual void SetAndGetBorderStylePdfDictTest()
        {
            PdfLineAnnotation pdfLineAnnotation = new PdfLineAnnotation(new PdfDictionary());
            PdfDictionary     dict = new PdfDictionary();

            dict.Put(PdfName.Width, new PdfNumber(1));
            pdfLineAnnotation.SetBorderStyle(dict);
            NUnit.Framework.Assert.AreEqual(dict, pdfLineAnnotation.GetBorderStyle());
        }