How can I create PDF with spot color?
"AAA" <always_rick-/[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.pdfapi2 |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
I am confused. How can I create PDF with spot colors?
In API2 I only see the following sample code.
---------------------------------------------------------------------
1 $cy = $pdf->colorspace_separation('Cyan', '%f000');
2 $ma = $pdf->colorspace_separation('Magenta', '%0f00');
3 $ye = $pdf->colorspace_separation('Yellow', '%00f0');
4 $bk = $pdf->colorspace_separation('Black', '%000f');
5 $pms023 = $pdf->colorspace_separation('PANTONE 032CV', '%0ff0');
6 $dncs = $pdf->colorspace_devicen( [ $cy,$ma,$ye,$bk,$pms023 ] );
---------------------------------------------------------------------
My understanding is line 5 is make a separated colorspace
for 'PANTONE 032CV', which is red ('%0ff0') in CMYK.
What to do next? I did $txt->fillcolor($pms023, 100); but didn't
work.
thanks a lot.