10.07.2015 Views

Download - Multivac!

Download - Multivac!

Download - Multivac!

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

p.set_parameter("errorpolicy", "return");icchandle = p.load_iccprofile(...);if (icchandle == -1){return;}p.set_value("setcolor:iccprofilecmyk", icchandle);p.setcolor("fill", "iccbasedcmyk", 0, 1, 0, 0);Mapping device colors to ICC-based default color spaces. PDF provides a feature formapping device-dependent gray, RGB, or CMYK colors in a page description to deviceindependentcolors. This can be used to attach a precise colorimetric specification tocolor values which otherwise would be device-dependent. Mapping color values thisway is accomplished by supplying a DefaultGray, DefaultRGB, or DefaultCMYK colorspace definition. In PDFlib it can be achieved by setting the defaultgray, defaultrgb, ordefaultcmyk parameters and supplying an ICC profile handle as the corresponding value.The following examples will set the sRGB color space as the default RGB color spacefor text, images, and vector graphics:/* sRGB is guaranteed to be always available */icchandle = p.load_iccprofile("sRGB", 0, "usage=iccbased");p.set_value("defaultrgb", icchandle);Defining output intents for PDF/X and PDF/A. An output device (printer) profile can beused to specify an output condition for PDF/X. This is done by supplying usage=outputintentin the call to PDF_load_iccprofile( ). For PDF/A any kind of profile can be specified asoutput intent. For details see Section 9.4, »PDF/X for Print Production«, page 202, andSection 9.5, »PDF/A for Archiving«, page 207.66 Chapter 3: PDFlib Programming

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!