Previous | Next | (P-PDF) Engineering
Topic: Programmatically replacing RGB with Pantone colors
Conf: (P-PDF) Engineering, Msg: 163045
From: uhkeller
Date: 10/24/2007 11:47 PM
Hello,
I have a number of simple, all-vector PDF files generated by the statistics package R. R can only handle RGB color information, however the printing firm needs a particular Pantone spot color. Only (shades of) one Pantone color and black will be used. I am looking for a way to replace the RGB color information in the PDF documents with this Pantone color and black. The RGB color information is easy to change, but I have no idea how to get Pantone colors in there. For example, this part of a stream paints a green rectangle with black border:
Q q 1.44 1.44 429.12 429.12 re W n
0.000 1.000 0.000 rg
0.000 0.000 0.000 RG
How would I go about changing this to, say, Pantone 363? Below you will find the complete R-generated PDF file of the green rectangle.
Thanks in advance for your answers,
Uli
%PDF-1.1
%?????r
1 0 obj
<<
/CreationDate (D:20071024153304)
/ModDate (D:20071024153304)
/Title (R Graphics Output)
/Producer (R 2.6.0)
/Creator (R)
>>
endobj
2 0 obj
<<
/Type /Catalog
/Pages 3 0 R
>>
endobj
5 0 obj
<<
/Type /Font
/Subtype /Type1
/Name /F1
/BaseFont /ZapfDingbats
>>
endobj
6 0 obj
<<
/Type /Page
/Parent 3 0 R
/Contents 7 0 R
/Resources 4 0 R
>>
endobj
7 0 obj
<<
/Length 8 0 R
>>
stream
q
Q q 1.44 1.44 429.12 429.12 re W n
0.000 1.000 0.000 rg
0.000 0.000 0.000 RG
0.75 w
[] 0 d
1 J
1 j
10.00 M
17.33 17.33 397.33 397.33 re B
Q
endstream
endobj
8 0 obj
142
endobj
3 0 obj
<<
/Type /Pages
/Kids [
6 0 R
]
/Count 1
/MediaBox [0 0 432 432]
>>
endobj
4 0 obj
<<
/ProcSet [/PDF /Text]
/Font << /F1 5 0 R >>
/ExtGState << >>
>>
endobj
9 0 obj
<<
/Type /Encoding
/BaseEncoding /WinAnsiEncoding
/Differences [ 45/minus 96/quoteleft
144/dotlessi /grave /acute /circumflex /tilde /macron /breve /dotaccent
/dieresis /.notdef /ring /cedilla /.notdef /hungarumlaut /ogonek /caron /space]
>>
endobj
xref
0 10
0000000000 65535 f
0000000021 00000 n
0000000163 00000 n
0000000589 00000 n
0000000672 00000 n
0000000212 00000 n
0000000295 00000 n
0000000375 00000 n
0000000570 00000 n
0000000754 00000 n
trailer
<<
/Size 10
/Info 1 0 R
/Root 2 0 R
>>
startxref
1011
%%EOF