public virtual void createAddressBook() { initCustomerInfo(null, null, "Art Point", "Address Pocketbook"); theNode.setDescriptiveName("7.5.2 A5 brochure 4c/4c, 4pg Cover, 32 pg Text"); JDFNode cover = addJDFNode(theNode, EnumType.Product); cover.setDescriptiveName("Address Book Cover"); initMediaIntent(cover, 200, EnumSpanCoatings.Glossy, null); JDFLayoutIntent li = initLayoutIntent(cover, 14.8, 21, 4, 2); JDFColorIntent ci = initColorIntent(cover, 4, 4, null); JDFComponent cCover = initOutputComponent(cover, li, "Cover"); cCover.setComponentType(EnumComponentType.PartialProduct, EnumComponentType.Sheet); JDFNode body = addJDFNode(theNode, EnumType.Product); body.setDescriptiveName("Address Book Body"); body.linkResource(ci, EnumUsage.Input, null); initMediaIntent(body, 135, EnumSpanCoatings.Coated, null); initLayoutIntent(body, 14.8, 21, 32, 2); JDFComponent cBody = initOutputComponent(body, li, "Body"); cBody.setComponentType(EnumComponentType.PartialProduct, EnumComponentType.Sheet); initBindingIntent(cCover, cBody, 2); initOutputComponent(theNode, li, null); initDeliveryIntent(5000); }
public virtual void createHDCity() { initCustomerInfo(null, null, "Heidelberger Druckmaschinen AG", "Heidelberg A4 brochure"); theNode.setDescriptiveName("7.5.5 A4 brochure with spot colors, 4pg Cover 6c/4c, 32 pg Text 4c/4c"); JDFNode cover = addJDFNode(theNode, EnumType.Product); cover.setDescriptiveName("HD Brochure Cover"); initMediaIntent(cover, 200, EnumSpanCoatings.Glossy, null); JDFLayoutIntent li = initLayoutIntent(cover, 21, 29.7, 4, 2); initColorIntent(cover, 6, 4, null); JDFComponent cCover = initOutputComponent(cover, li, "Cover"); cCover.setComponentType(EnumComponentType.PartialProduct, EnumComponentType.Sheet); JDFNode body = addJDFNode(theNode, EnumType.Product); body.setDescriptiveName("HD Brochure Body"); initColorIntent(body, 4, 4, null); initMediaIntent(body, 135, EnumSpanCoatings.Coated, null); initLayoutIntent(body, 21, 29.7, 32, 2); JDFComponent cBody = initOutputComponent(body, li, "Body"); cBody.setComponentType(EnumComponentType.PartialProduct, EnumComponentType.Sheet); initBindingIntent(cCover, cBody, 2); initOutputComponent(theNode, li, null); initDeliveryIntent(5000); }
public virtual void createHarley() { initCustomerInfo(null, null, "ABC Promotions Company", "Speed-Point Harley Poster"); theNode.setDescriptiveName("7.5.4 Poster 4c/0c"); initMediaIntent(theNode, 170, EnumSpanCoatings.Glossy, null); JDFLayoutIntent li = initLayoutIntent(theNode, 43, 32.6, 1, 1); initColorIntent(theNode, 4, 0, null); initOutputComponent(theNode, li, null); initDeliveryIntent(5000); }
public virtual void createPostCards() { initCustomerInfo(null, null, "Volkswagen AG", "Freeway postcards"); theNode.setDescriptiveName("7.5.1 Postcards 4c/4c"); initMediaIntent(theNode, 300, EnumSpanCoatings.Coated, null); JDFLayoutIntent li = initLayoutIntent(theNode, 14.8, 10.5, 16, 2); initColorIntent(theNode, 4, 4, null); initOutputComponent(theNode, li, null); initDeliveryIntent(5000); }
/// /// <summary> * </summary> /// protected internal virtual JDFLayoutIntent initLayoutIntent(JDFNode node, double xCM, double yCM, int pages, int sides) { JDFLayoutIntent loi = (JDFLayoutIntent)node.addResource(ElementName.LAYOUTINTENT, EnumUsage.Input); loi.getCreateFinishedDimensions().setPreferred(xCM * 72 / 2.54, yCM * 72 / 2.54, 0); loi.getCreatePages().setPreferred(pages); loi.setSides(sides == 2 ? EnumSides.TwoSidedHeadToHead : EnumSides.OneSided); loi.setResStatus(EnumResStatus.Available, false); loi.preferredToActual(); return(loi); }
public virtual void createWatches() { initCustomerInfo(null, null, "ABC Promotions Company", "Sinn watches double flap"); theNode.setDescriptiveName("7.5.3 Flyer with special fold 4c/4c"); initMediaIntent(theNode, 170, EnumSpanCoatings.Coated, null); JDFLayoutIntent li = initLayoutIntent(theNode, 21, 29.7, 6, 2); initColorIntent(theNode, 4, 4, null); JDFFoldingIntent fi = initFoldingIntent(theNode, "F6-3"); fi.setDescriptiveName("F6-3 should be the gate fold"); initOutputComponent(theNode, li, null); initDeliveryIntent(5000); }
public virtual void createMultiLabels() { theNode.setDescriptiveName("Multi Label Product"); JDFDeliveryIntent diBig = initDeliveryIntent(0); theNode.removeResource(ElementName.CUSTOMERINFO, 0); ProductGoldenTicket gtLabel1 = new ProductGoldenTicket(0, EnumVersion.Version_1_3, 0, 0); JDFNode n1 = theNode.addProduct(); gtLabel1.assign(n1); addKid(gtLabel1); gtLabel1.initCustomerInfo("Johann", "ReweEinkäufer", "Rewe", "Mineralwasser label"); initMediaIntent(n1, 24.4, EnumSpanCoatings.Coated, "38DL247 38"); JDFLayoutIntent li = initLayoutIntent(n1, 92, 28.3, 1, 1); initColorIntent(n1, 6, 0, null); initOutputComponent(n1, li, "Label"); JDFDeliveryIntent di = gtLabel1.initDeliveryIntent(5000); diBig.moveElement(di.getDropIntent(0), null); gtLabel1.getNode().removeResource("DeliveryIntent", 0); ProductGoldenTicket gtLabel2 = new ProductGoldenTicket(0, EnumVersion.Version_1_3, 0, 0); JDFNode n2 = theNode.addProduct(); gtLabel2.assign(n2); addKid(gtLabel2); gtLabel2.initCustomerInfo("Franzi", "KulmbachEinkäufer", "Kulmbach", "Weissbier label"); initMediaIntent(n2, 24.4, EnumSpanCoatings.Coated, "38DL247 38"); li = initLayoutIntent(n2, 11.4, 5, 1, 1); gtLabel2.cols = new VString("Green Gold Black Yellow Gold Thermo", null); gtLabel2.initColorIntent(n2, 6, 0, null); initOutputComponent(n2, li, "Label"); di = gtLabel2.initDeliveryIntent(10000); diBig.moveElement(di.getDropIntent(0), null); gtLabel2.getNode().removeResource("DeliveryIntent", 0); }
/// /// <summary> * product intent for the drupa flower job /// * </summary> /// * <exception cref="Exception"> </exception> /// public virtual void createDrupaFlower() { initCustomerInfo("Jane", "Customer", "Messe Düsseldorf", "CIP4 Drupa Flower Demo Job"); theNode.setDescriptiveName("Drupa Flower Brochure, 4pg Cover 5c5c, 48 pg Text 5c5c"); JDFNode cover = addJDFNode(theNode, EnumType.Product); cover.setDescriptiveName("Drupa Flower Brochure Cover"); initMediaIntent(cover, 200, EnumSpanCoatings.Glossy, "Luxocard 2 SB"); JDFLayoutIntent li = initLayoutIntent(cover, 23.3, 21.6, 4, 2); initColorIntent(cover, 5, 5, null); JDFComponent cCover = initOutputComponent(cover, li, "Cover"); cCover.setComponentType(EnumComponentType.PartialProduct, EnumComponentType.Sheet); JDFNode body = addJDFNode(theNode, EnumType.Product); body.setDescriptiveName("Drupa Flower Brochure Body"); initColorIntent(body, 5, 5, "Cyan Magenta Yellow Black Blue"); initMediaIntent(body, 150, EnumSpanCoatings.Glossy, "Scheufelen BVS dull BB"); initLayoutIntent(body, 23.3, 21.6, 48, 2); JDFComponent cBody = initOutputComponent(body, li, "Body"); cBody.setComponentType(EnumComponentType.PartialProduct, EnumComponentType.Sheet); initBindingIntent(cCover, cBody, 2); initOutputComponent(theNode, li, null); initDeliveryIntent(5000); JDFPackingIntent pi = (JDFPackingIntent)theNode.getCreateResource(ElementName.PACKINGINTENT, EnumUsage.Input, 0); pi.setDescriptiveName("want cartons of products"); JDFIntegerSpan @is = pi.appendCartonQuantity(); @is.setRange(new JDFIntegerRangeList(new JDFIntegerRange(50, 500))); }
public virtual void testBugBuild058() { // get the JDF document root element JDFDoc jdfDoc = new JDFDoc(ElementName.JDF); JDFNode productNode = jdfDoc.getJDFRoot(); productNode.setType(JDFNode.EnumType.Product.getName(), false); // Add an intent resource JDFLayoutIntent layoutIntent = (JDFLayoutIntent)productNode.appendMatchingResource("LayoutIntent", JDFNode.EnumProcessUsage.AnyInput, null); // set the type attribute JDFResourceLink rli = productNode.getMatchingLink("LayoutIntent", JDFNode.EnumProcessUsage.AnyInput, 0); bool bValid = rli.isValid(KElement.EnumValidationLevel.Complete); Assert.IsTrue(bValid); JDFLayoutIntent layoutIntent2 = (JDFLayoutIntent)rli.getTarget(); bValid = bValid && (layoutIntent2.Equals(layoutIntent)); Assert.IsTrue(bValid); }
/// /// * <param name="icsLevel"> </param> /// protected internal virtual JDFComponent initOutputComponent(JDFNode node, JDFLayoutIntent li, string productType) { JDFComponent outComp = (JDFComponent)node.getCreateResource(ElementName.COMPONENT, EnumUsage.Output, 0); if (productType == null) { outComp.setComponentType(EnumComponentType.FinalProduct, EnumComponentType.Sheet); } else { outComp.setComponentType(EnumComponentType.PartialProduct, EnumComponentType.Sheet); outComp.setProductType(productType); } theNode.getResource(ElementName.LAYOUTINTENT, null, 0); JDFShape s = li.getFinishedDimensions().getActual(); outComp.setDimensions(s); if (theNode != node) { theNode.getResourcePool().moveElement(outComp, null); theNode.linkResource(outComp, EnumUsage.Output, null); } return(outComp); }