Esempio n. 1
0
        public virtual void LayerSetSeveralIntents()
        {
            PdfName  custom   = new PdfName("Custom");
            PdfLayer pdfLayer = PdfLayerTestUtils.PrepareLayerDesignAndCustomIntent(custom);
            ICollection <PdfName> defaultIntents = pdfLayer.GetIntents();

            NUnit.Framework.Assert.AreEqual(new PdfName[] { PdfName.Design, custom }, defaultIntents.ToArray(new PdfName
                                                                                                             [2]));
        }
Esempio n. 2
0
        public virtual void LayerSetIntentsNull()
        {
            PdfName  custom   = new PdfName("Custom");
            PdfLayer pdfLayer = PdfLayerTestUtils.PrepareLayerDesignAndCustomIntent(custom);

            pdfLayer.SetIntents(null);
            ICollection <PdfName> postNullIntents = pdfLayer.GetIntents();

            NUnit.Framework.Assert.AreEqual(new PdfName[] { PdfName.View }, postNullIntents.ToArray(new PdfName[1]));
        }