2

Is it possible to use spot colors(like Pantone) in dompdf?

In TCPDF one can easily define('white' => array( 0, 0, 0, 0, 'White')) and use(TCPDF_COLORS::$spotcolor['white']) spot colors , but the HTML rendering of dompdf is better.

S. Rudolph
  • 41
  • 1
  • 6

1 Answers1

0

dompdf does not support spot colors directly. It does, however, support using CMYK to define a color in CSS, e.g.

.white { color: cmyk(0,0,0,0); }

This does not mean, however, that a PDF will necessarily accurately represent the color across mediums (e.g. screen, print) because dompdf does not currently support color space profiles such as ICC.

BrianS
  • 13,284
  • 15
  • 62
  • 125