Product with Freeform

Freeforms can also be defined when ordering. To do this, select the desired article in the neccessary format and transfer the special format values via the following additional parameters in createOrder().

Example
class specialFormatType {
public $width; // int
public $height; // int
public $formatType; // string
}

class orderDataType {
public $customerProductId; // string
public $orderQuantity; // int
public $aspectRatio; // string
public $shippingType; // string
public $orderName; // string
public $customerCopy; // int
public $customerComment; // string
public $specialFormatValues;
}

$args->orderPositions[0]->orderInformation->specialFormatValues = new specialFormatType();
$args->orderPositions[0]->orderInformation->specialFormatValues->width = 150;
$args->orderPositions[0]->orderInformation->specialFormatValues->height = 150;
$args->orderPositions[0]->orderInformation->specialFormatValues->formatType = ‘free_form‘;

Note
For Freeform, create a vector path in your printing data, showing the cutting line. Give this path a spot colour, name the special colour “cutting line”, and set it to “Overprint”.