Home > Gestione digitale del colore > Formato PDF > Specifiche
Specifica del colore in PDF 1.3

Generalità

In PDF 1.2 un colore indipendente dalla periferica può essere specificato solo con un CSA (CalRGB, CalGray o Lab). In PDF 1.3 vengono supportati anche i profili ICC, con un nuovo operatore chiamato ICCBased.

Le specifiche di PDF 1.3 consentono l'uso di questi spazi colore:

  • device dependent (dipendenti dalla periferica, cioè senza "profilo"; di queste famiglie c'è una sola "istanza"):
    • DeviceGray;
    • DeviceRGB;
    • DeviceCMYK;
  • device independent (cioè con un "profilo" di riferimento):
    • basati su profili ICC (a loro volta basati su Lab o XYZ):
      • ICCBased (solo la parte AtoB, cioè da periferica ad assoluto; la parte a periferica è ignorata se presente; anche il rendering intent è ignorato se presente);
    • basati su profili PostScript CSA (a loro volta basati su XYZ):
      • Lab (blackpoint, whitepoint, range);
      • CalGray (blackpoint, whitepoint, gamma);
      • CalRGB (blackpoint, whitepoint, gamma, matrix);
      • nelle specifiche PDF 1.3 non esiste CalCMYK, gli spazi a 4 componenti sono supportati solo mediante ICCBased;
  • special (per utilizzi particolari):
    • Separation;
    • DeviceN;
    • Pattern;
    • Indexed.

In questa tabella sono confrontate le specifiche di colore di PostScript Level 2 e 3, PDF 1.2 e PDF 1.3.

Trattamento del colore

In PDF 1.3 lo spazio colore è a livello di singolo oggetto, viene definito dall'operatore cs ed assegnato ad un oggetto con l'operatore sc. L'intento di rendering è specificato dall'operatore ri per lo stato grafico e le immagini possono avere un campo opzionale Intent (default= relative colorimetric).

Esiste un Default Color Space, che viene descritto dal manuale PDF 1.3 come segue.

When a rendering device is performing a marking operation, there is always a current color space, which is established using the operators of Section 8.5.2, “Color operators,” the ColorSpace key of an ImageXObject, or the CS key of an in-line image.

When the current color space is DeviceGray, the ColorSpace dictionary of the current Resources dictionary is checked for the presence of the DefaultGray key. If this key is present, then the color space that is the value of that key is used as the color space for the operation currently being performed. The value of the DefaultGray key may be the DeviceGray color space, a CalGray color space, a Separation color space, or (in PDF 1.3) a 1-component ICCBased or DeviceN color space.

Similarly, when the current color space is DeviceRGB, the ColorSpace dictionary of the current Resources dictionary is checked for the presence of the DefaultRGB key. If this key is present, then the color space that is the value of that key is used as the color space for the operation currently being performed. The value of the DefaultRGB key may be the DeviceRGB color space, a CalRGB color space specification, or (in PDF 1.3) a 3-component ICCBased or DeviceN color space.

In PDF 1.3, when the current color space is DeviceCMYK, theColorSpace dictionary of the Resources dictionary is checked for the presence of the DefaultCMYK key. If this key is present, then the color space that is the value of that key is used as the color space for the operation currently being performed. The value of the DefaultCMYK key may be the DeviceCMYK color space or a 4-component ICCBased or DeviceN color space.

Esempi

Lab D50

8 0 obj
[/Lab
<<
/WhitePoint [0.9642 1 0.8249]
/Range [-128 127 -128 127]
>> ]

endobj

CalRGB (AppleRGB)

12 0 obj
[/CalRGB
<<
/WhitePoint [0.9505 1 1.0890]
/Gamma [1.8 1.8 1.8]
/Matrix
[0.4497 0.2446 0.0252
0.3163 0.6720 0.1412
0.1845 0.0833 0.9227]
>> ]

endobj

CalRGB
(AdobeRGB, D65)

8 0 obj
[/CalRGB
<<
/WhitePoint [0.9505 1 1.0891]
/Gamma [2.1992 2.1992 2.1992]
/Matrix
[0.5767 0.2973 0.027
0.1856 0.6274 0.0707
0.1882 0.0753 0.9913]
>> ]
endobj

Home | Commenti a Mauro Boscarol | Ultimo aggiornamento 28 settembre 2004