PDFlib Cookbook



blendmodeDemonstrate all blend modes available in PDF.
blendmode_effectsDemonstrate all blend modes available in PDF.
colorAll_for_cropmarksCreate crop marks which will be visible on all color separations, using the special spot color "All".
color_gradientFill some area or text with a smooth transition from one color to another.
colorize_image_with_DeviceN_colorupdatedCreate a DeviceN color space based on two Pantone spot colors to colorize a 2-channel image in raw format.
devicen_colorDefine and use several DeviceN colors.
iccprofile_to_imageAssign an ICC profile to an image.
overprintDemonstrate overprint controls using CMYK and DeviceN colors or blend modes.
recombine_color_channelsColorize images and place all colorized images on top of each other.
softmask_effectsupdatedCreate a soft mask based on arbitrary geometric objects.
spot_colorDefine and use several spot colors.
spot_color_shadingDefine and use several spot colors as shading.
starter_colorDemonstrate all supported color spaces.
svg_color_extensionupdatedDemonstrate SVG color extensions: Load SVG graphics with non-sRGB color spaces including CMYK and spot color.
web_colornamesCreate 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.