Ejemplo n.º 1
0
        public virtual void testSeparatedTiff()
        {
            ArrayList v1 = StringUtil.tokenize("Cyan Magenta Yello Black", " ", false);
            ArrayList v2 = new ArrayList();

            for (int i = 0; i < v1.Count; i++)
            {
                v2.Add("FileInfo://device/dir/" + v1[i] + ".tif");
            }
            JDFRunList rl2 = rl.addSepRun(v2, v1, 0, 0, false);

            Assert.IsTrue(rl2.isValid(EnumValidationLevel.Complete));
        }
Ejemplo n.º 2
0
        public void testGetTruePage()
        {
            JDFResourcePool resPool = root.getCreateResourcePool();
            JDFRunList      ruli    = (JDFRunList)resPool.appendResource(ElementName.RUNLIST, null, null);

            Assert.AreEqual(ruli, ruli.getTruePage());
            JDFRunList ruli2 = ruli.addSepRun(StringUtil.tokenize("c.pdf m.pdf y.pdf k.pdf", " ", false), StringUtil.tokenize("Cyan Magenta Yellow Black", " ", false), 0, 4, true);

            Assert.AreEqual(ruli, ruli.getTruePage());
            Assert.AreEqual(ruli2, ruli2.getTruePage());
            JDFRunList ruli2c = (JDFRunList)ruli2.getElement_KElement(ElementName.RUNLIST, null, 0);

            Assert.AreEqual(ruli2, ruli2.getTruePage());
            Assert.AreEqual(ruli2, ruli2c.getTruePage());
        }