views:

23

answers:

0

I'm trying to assign Pantone colors to some text in Prawn. Ideally I'd like to be able to do this

pdf.text_color = pdf.pantone(:485U)
pdf.text "Whatever"

I know this isn't possible. I considered calling pdf.raw and specifying the color manually but the PDF spec (ISO32000:2008) is way too complicated.

I need either a simpler way or someone well versed enough in the PDF spec to be able to explain the required raw codes.