Introduction
You may use SOAP to call a production event that completes the edit job process, whereby allowing the job finish size to be altered. By incorporating this production event before or during a preflight check, you may avoid validation issues further along the pre-production path.
As with other Production Integration API calls, you must reference the following Parameters
Production Integration supported Systems
The following table lists the Systems and their Value
System | Value |
Enfocus SWITCH | EnfocusSwitchScript |
Kodak Prinergy Connect | prinergy |
Esko Automation Engine | esko |
UPDATE_JOB_FINISH_SIZE EventType
The EventType is ‘UPDATE_JOB_FINISH_SIZE’. The SystemData value will reconfigure (update) the artwork width and height in millimeters. Format the SystemData value as per below:
{ Width: x, Depth: y }
The following code will flip (update) a business card to landscape orientation:
function sendSoap {
var resp = SOAP.request[“http://yourprintiq.com/WebService/ProductionIntegration.asmx”], {
“http://iq.co.nz/:RunEvent” : {
System: “EnfocusSwitchScript”,
EventType: “UPDATE_JOB_FINISH_SIZE”,
SystemData: { Width: 90, Depth: 55 },
JobRef: “J012345”,
FileRefs: “J012345_Artwork file_1.pdf”,
EventText: ““
}
},”http://iq.co.nz/RunEvent”);
var resu = resp[“http://iq.co.nz/:RunEventResponse”][“RunEventResult”];
if (resu !== “Success”) {
throw new Error(“Invalid response from web service: “ + resu);
}
return resu;
}
As with other Production Integration API calls, reference the applicable Job Number (JobRef) and File Name (FileRefs).