PDFlib Cookbook

cookbook

Color

blendmode Demonstrate all blend modes available in PDF.
blendmode_effects Demonstrate all blend modes available in PDF.
colorAll_for_cropmarks Create crop marks which will be visible on all color separations, using the special spot color "All".
color_gradient Fill some area or text with a smooth transition from one color to another.
colorize_image_with_DeviceN_color updated Create a DeviceN color space based on two Pantone spot colors to colorize a 2-channel image in raw format.
devicen_color Define and use several DeviceN colors.
iccprofile_to_image Assign an ICC profile to an image.
overprint Demonstrate overprint controls using CMYK and DeviceN colors or blend modes.
recombine_color_channels Colorize images and place all colorized images on top of each other.
softmask_effects updated Create a soft mask based on arbitrary geometric objects.
spot_color Define and use several spot colors.
spot_color_shading Define and use several spot colors as shading.
starter_color Demonstrate all supported color spaces.
svg_color_extension updated Demonstrate SVG color extensions: Load SVG graphics with non-sRGB color spaces including CMYK and spot color.
web_colornames Create a list of all HTML colors including the color name and hexadecimal color value as well as the corresponding RGB color values used in PDFlib.