Conversions with ICC Color Profiles
PDF2IMG honors calibrated colorspaces in PDF files when output color management is in effect, and will write target ICC profiles to TIF, JPEG, PNG, or BMP output files.
Color management can be suppressed using either the nocmm command line option or the pdf2img_set_colormanagement() API call.
For non-calibrated spaces, PDF2IMG will use the defaults provided by the Adobe PDF Library for conversions, depending on the colorspace.
Default Conversion Color Profiles
| Colorspace | ICC Color Profile (input) | ICC Color Profile (output) |
|---|---|---|
| RGB | Adobe 1998 RGB | sRGB |
| CMYK | Adobe Reader 9 CMYK | Adobe Reader 9 or later CMYK, based on Simplified US web coated SWOP v2 |
| Gray | Gamma 2.2 | Gamma 2.2 |
| L*a*b | CIE 1976 (L*a*b*) color specification with a D50 white point |
Command Line Summary
Conversions with Missing Profiles
When creating a PDF document, the best practice is to embed all the fonts the document needs directly in the file. That way, software used to open the PDF (such as Adobe Reader or Acrobat) does not need to search for fonts on the local system or provide substitutes.