axf:overprint

(Auszug aus "XSL-FO ― Die Referenz" von Manuel Montero Pineda & Steffen Herkert, 2016, dpunkt.verlag)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

Category Printing Control

Specifies the overprint. V6.3MR2[no-LT]

Value:auto | <overprint>#
Initial:auto
Applies to:all formatting objects
Inherited:yes
Percentages:N/A

<overprint> = <opcolor> [[stroke || paint || [full | nonzero]] | none]?
<opcolor> = <color> | k100 | separation | all

Values have the following meanings.

autoThe setting of the overprint in the Option Setting File is adopted. If you specify overprint="k100" in the Option Setting File, even if nothing is specified in FO, black overprinting will be done on all pages.
<color>Specifies a color you want to apply the overprint. A color with alpha value cannot be specified.
k100Applies the overprint to rgb-icc(#CMYK,0,0,0,1).
separationApplies the overprint to the separation color shown rgb-icc (#Separation). The registration color is not included.
allApplies the overprint to all colors except for a color with alpha value.
strokeApplies the overprint for the line stroke.
paintApplies the overprint for the paint.
fullSpecifies the operation in case the color ingredient is 0 when applying the overprint. When full is specified, the color ingredient is set to 0, when nonzero is specified, the color ingredient is not changed. (It is considered as no color). This setting is effective only with CMYK.
nonzeroSpecifies the operation in case the color ingredient is 0 when applying the overprint. When full is specified, the color ingredient is set to 0, when nonzero is specified, the color ingredient is not changed. (It is considered as no color). This setting is effective only with CMYK.
noneThe overprint is not applied.

If you specify only the color as follows;

axf:overprint="<color>"

it is considered as follows;

axf:overprint="<color> stroke paint nonzero"

In addition, when neither stroke nor paint is specified, it is considered that stroke and paint are specified. Please specify none to remove them from the overprint.

axf:overprint="k100, rgb-icc(#CMYK,0,0,0,1) stroke full, all paint"

As specified above, when a certain color can be interpreted as multiple settings, the settings will be investigated in the following order and the first matched setting will be adopted.
  1. <color>
  2. k100
  3. separation
  4. all

The effect of the overprint varies by the actual printing environment, in relation between the background color and the foreground color with overprint specified. The effect of the typical overprint by the color space is shown below. When rgb-conversion="cmyk" is specified in the Option Setting File, RGB serves as CMYK.

Foreground (overprint is specified)
CMYKSeparationRGBGrayscale
Background CMYKYesYesNoNo
SeparationYesYesYesYes
RGBYesYesNoNo
GrayscaleNoYesNoNo

See also 4.5.6 Overprint Control in "PDF Reference" for more details.

CAUTION:The overprint is effective only with the PDF output. It is invalid when printing to paper directly. Also it is not applied to shading and the form field.
CAUTION:The setting does not affect on the embedded PDF. Please create PDF by specifying the overprint before embedding it.

This property is not available with AH Formatter V6.3 Lite.

XSL-FO sample:

<fo:root xml:lang="ja" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:cpfo="http://www.compart.net/xmlns/cpfo" xmlns:svg="http://www.w3.org/2000/svg" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions">

Antenna House, Inc.

オーバープリントの設定例

axf:overprint の設定によりオーバープリントを指定できます。オーバープリントは文字や図形などオブジェクトの色が重なって配置された場合に上下のオブジェクトの色を重ねて印刷する状態のことです。axf:overprint で設定できる値は、"<color>":オーバープリントを適用するカラーを指定、"k100":rgb-icc(#CMYK,0,0,0,1) に適用、"separation":rgb-icc(#Separation) で示されるセパレーションカラーに適用、"all":すべてのカラーに適用、"stroke":線の描画に対して適用、"paint":塗りの描画に対して適用などがあります。詳しい機能、制限などはオンラインマニュアルの「

axf:overprint

」をご覧ください。

axf:overprint が指定されているサンプル

左側は、文字の色に rgb-icc(#CMYK, 0, 0, 0, 1.0)、axf:overprint="k100" 指定がされています。右側は重なって手前に表示されているオブジェクト(カラー、rgb-icc(#CMYK, 1.0, 0, 0, 0) )に axf:overprint="rgb-icc(#CMYK, 1.0, 0, 0, 0)" を指定しています。

overprint sample

axf:overprint を指定していないサンプル

overprint sample

オーバープリント設定による差異

次の画像は Adobe Acrobat の色分解プレビューで各サンプルの左側の文字、右側の重なって手前に表示されているオブジェクトの色を非表示にしたものです。オーバープリントの設定では色を重ねて出力するため、文字や手前のオブジェクトの色を非表示にしても奥のオブジェクトの色が保持されます。

Download der Beispiele

Output:

Tipp der data2type-Redaktion:
Zum Thema XSL-FO bieten wir auch folgende Schulungen zur Vertiefung und professionellen Fortbildung an: