Exemplo n.º 1
0
        internal static PdfLayer PrepareLayerDesignAndCustomIntent(PdfName custom)
        {
            PdfLayer pdfLayer = PrepareNewLayer();

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

            pdfLayer.SetIntents(JavaCollectionsUtil.SingletonList(PdfName.Design));
            return(pdfLayer);
        }
Exemplo n.º 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]));
        }