internal static PdfLayer PrepareLayerDesignAndCustomIntent(PdfName custom)
        {
            PdfLayer pdfLayer = PrepareNewLayer();

            pdfLayer.SetIntents(JavaUtil.ArraysAsList(PdfName.Design, custom));
            return(pdfLayer);
        }
        internal static PdfLayer PrepareLayerDesignIntent()
        {
            PdfLayer pdfLayer = PrepareNewLayer();

            pdfLayer.SetIntents(JavaCollectionsUtil.SingletonList(PdfName.Design));
            return(pdfLayer);
        }
Beispiel #3
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]));
        }