AddSpotColor
(mPDF ≥ 5.1)
AddSpotColor – Define a Spot colour
Description
void AddSpotColor ( string $name , int $c , int $m, int $y , int $k )
Define a Spot colour which can be used in the document. Spot colours need to be defined at the start of the script.
Parameters
- $name
-
Specifies the name used for the spot colour.
- $c, $m, $y, $k
-
Specifies the CMYK values to be used to display in the document or if the spot colour is not available.
Default:
0
Examples
Example #1
<?php
$mpdf->AddSpotColor('PANTONE 534 EC', 85, 65, 47, 9);
?>
HTML
This will be printed using PANTONE 300 EC at 80% tint