1

When creating a PDF using PrawnPDF with code:

d = Prawn::Document.new( page_size: [595,842] )
d.text( 'hello world', color: [3, 89, 86, 0] )
d.render

And then decompressing the PDF and inspecting the contents, there should only be /DeviceCMYK CS in there but there are also /DeviceRGB CS in there also.

Trying to get everything CMYK

xxjjnn
  • 14,591
  • 19
  • 61
  • 94

1 Answers1

0

Setting the fill_color and the stroke_color won't affect the visual appearance in the PDF, but it will mean that there are no longer any pesky RGB references in the PDF

d = Prawn::Document.new( page_size: [595,842] )
d.fill_color [3, 89, 86, 0]
d.stroke_color [3, 89, 86, 0]
d.text( 'hello world', color: [3, 89, 86, 0] )
d.render
xxjjnn
  • 14,591
  • 19
  • 61
  • 94