Zum Hauptinhalt springen
Rezept Nummer 192

Rezepte · Kapitel 10 · Ausgabe und Integration

Partieller Glanzlack auf einem Soft-Touch-Magazin

Zwei Lacke als Sonderfarben: Soft-Touch auf jeder Seite, Glanzlack über den Fotos und dem Titelschriftzug, zu sehen in Folio und den Veredelungsansichten.

Auf dieser Seite
Ausgabe
Canvas · PDF
Postext
Getestet mit Postext 1.86.0
Erfordert ≥ 1.85.1 · postext-pdf ≥ 1.85.1
Lizenz
Aktualisiert am 13. Nov. 2026
Code MIT · Text CC BY 4.0

S. 1 von 6

  • Englisches Beispiel: noch keine deutsche Ausgabe
  • Endformat 210 × 280 mm
  • 2 Spalten, Spaltenabstand 6 mm
  • Source Serif 4 9,8/13,6
  • Bodoni Moda
  • Source Sans 3
  • 6 Seiten
  • Stufe
  • Postext 1.86.0
  • In 83 ms gesetzt
  • 213 Zeilen Code

Kurz gesagt

Ein Fotomagazin mit einer samtigen Beschichtung auf jeder Seite und einer glänzenden nur auf den Fotos und dem Titel. Die Lacke haben keine Farbe; die 3D-Ansicht und eine Proof-Ansicht zeigen, wo sie liegen.

Was Sie setzen

Heft 14 von Long Light, einem erfundenen Fotomagazin: sechs Seiten in 210 × 280 mm, klebegebunden. Jede Seite trägt einen Soft-Touch-Lack, die samtige Veredelung, die den Bogen dämpft und ihm den Glanz nimmt. Über die fünf Fotos und den Titelschriftzug legt die Druckerei einen zweiten Lack, einen Glanzlack, damit die Bilder das Licht fangen, während die Seite um sie herum ruhig bleibt. Keiner der beiden Lacke hat eine Farbe: Die Leinwand zeigt die Seiten so, wie sie gedruckt werden, und drei Ansichten des Titelblatts neben Folio zeigen die Platten und den Glanz. Folio legt das Magazin aufgeschlagen auf einen Marmortisch im Studiolicht, wo der Glanz beim Umblättern aufblitzt.

Dieses Rezept beantwortet

  • Wie lege ich Soft-Touch-Lack auf jede Seite und partiellen Glanzlack nur auf die Fotos?

Die kurze Antwort

script.js · Zeilen 21–39im vollständigen Code
// A varnish is a spot ink: its own plate in the PDF, clear on screen. Soft touch goes over
// the whole sheet, the gloss over the pictures and the masthead. Both overprint by default,
// so neither cuts a hole in the colours under it. Each has a hex of its own all the same:
// a print render tells inks apart by their hex.
const varnish = (hex, name, sheen) => ({ hex, model: 'spot',
  spot: { name, cmyk: { c: 0, m: 0, y: 0, k: 0 }, finish: { kind: 'varnish', sheen } } });
const palette = {
  velvet: varnish('#e9e4f0', 'Soft-touch varnish', 'softTouch'),
  gloss: varnish('#e4f0ee', 'Spot UV gloss', 'gloss'),
  // The colours that print: a near-black, a slate for the bands, the paper.
  ink: { hex: '#1d1d22', model: 'cmyk', cmyk: { c: 30, m: 20, y: 10, k: 95 } },
  slate: { hex: '#262b3a', model: 'cmyk', cmyk: { c: 80, m: 65, y: 35, k: 60 } },
  muted: { hex: '#6c6a70', model: 'cmyk', cmyk: { c: 0, m: 5, y: 0, k: 65 } },
  paper: { hex: '#ffffff', model: 'hex' },
};
// The ink table names both varnishes as the order to the printer will.
const PRINT = { standard: 'pdfx4', outputProfile: 'fogra51', convertImages: false, inks: [
  { name: 'Soft-touch varnish', finish: { kind: 'varnish', sheen: 'softTouch' } },
  { name: 'Spot UV gloss', finish: { kind: 'varnish', sheen: 'gloss' } }] };

Zutaten

Schrift
Bodoni Moda, Source Serif 4, Source Sans 3 (SIL OFL 1.1)
Dateien
  • dusk-560.jpg
  • fog-800.jpg
  • nets-1100.jpg
  • road-1100.jpg
  • saltflat-800.jpg
  • A walker on a salt flat at dusk, on the cover (Generated With Diffusion Models, eigener Text)
  • A fisherman mending a net (Generated With Diffusion Models, eigener Text)
  • Pines in morning fog (Generated With Diffusion Models, eigener Text)
  • A desert road between mesas (Generated With Diffusion Models, eigener Text)
  • The salt flat at sunset, on the back cover (Generated With Diffusion Models, eigener Text)

Zubereitung

#1 · Jeder Lack ist eine Sonderfarbe mit Veredelung

Der Code steht oben in der kurzen Antwort. Ein Lack ist eine Sonderfarbe mit der Veredelung varnish und einem Schimmer: softTouch für das Samtige, gloss für den partiellen UV-Lack (Veredelungen). Die PDF/X-4-Datei legt jeden auf eine eigene Separation, sodass die Druckerei zwei Lackplatten neben den vier Prozessplatten bekommt. Auf dem Bildschirm malt ein Lack nichts; er braucht trotzdem ein eigenes Hex, weil ein Druck-Render die Farben an ihrem Hex unterscheidet. Ein Lack druckt standardmäßig über, also spart keiner der beiden die Farben darunter aus.

#2 · Soft-Touch auf jeder Seite

script.js · Zeilen 57–60im vollständigen Code
// The page's footer carries it, so every page has it. A varnish goes down last on press, and
// nothing painted after it cuts it away. The cover and the back keep it alone.
const velvet = { kind: 'box', id: 'velvet', style: { backgroundColor: col('velvet') },
  placement: at('bleed', 'top-left', 0, 0, { width: 'fill', height: 'fill' }) };

Der Soft-Touch ist ein einzelner Kasten im Lack, von Anschnitt zu Anschnitt. Die Fußzeile trägt ihn, sodass jede Seite ihn von derselben Stelle bekommt. In der Maschine kommt der Lack zuletzt, über alles, und im PDF spart nichts, was die Seite danach malt, ihn aus: Der Kasten könnte ebenso gut die Kopfzeile eröffnen, vor dem Text und den Seitenzahlen, die auf der Platte unter ihm lägen. Titelblatt und Rückseite haben keine Seitenzahlen, ihre Fußzeile trägt nur den Kasten.

#3 · Glanz über den Fotos

script.js · Zeilen 64–69im vollständigen Code
// The gloss box comes after the picture, so it lies on top; being a varnish it paints
// nothing on the canvas, and in the PDF it overprints the picture on a plate of its own.
const glossed = (resourceId, placement, focus) => [
  { kind: 'image', id: 'photo', resourceId, fit: 'cover', placement, ...(focus && { focus }) },
  { kind: 'box', id: 'shine', style: { backgroundColor: col('gloss') }, placement },
];

Jedes Foto ist ein Bild, über das ein gleich großer Kasten im Glanzlack gelegt wird. Der Kasten kommt als Zweites und liegt deshalb oben: Auf der Platte ist er ein Rechteck, das das Bild genau deckt, und so zeichnet man eine Platte für partiellen UV-Lack.

#4 · Der Titelschriftzug zweimal gesetzt

script.js · Zeilen 73–90im vollständigen Code
const BAND = 222; // mm from the top of the bleed to the slate band
const masthead = (id, color) => text(id, '{titleText}', { fontFamily: DISPLAY, fontWeight: 700,
  fontSize: pt(84), lineHeight: 0.9, align: 'center', color },
at('page', 'top-left', 0, 12, { width: mm(TRIM_W) }));
const cover = { id: 'cover', numbered: false, toc: false, span: 'page',
  footer: { elements: [velvet] }, advancedDesign: { enabled: true, minHeight: mm(230),
    slot: { elements: [
      ...glossed('saltflat', at('bleed', 'top-left', 0, 0, { width: 'fill',
        height: mm(BAND + 3) }), { x: 0.5, y: 0.62 }),
      { kind: 'box', id: 'band', style: { backgroundColor: col('slate') },
        placement: at('bleed', 'top-left', 0, BAND, { width: 'fill', height: mm(70) }) },
      masthead('title', col('paper')), masthead('title-gloss', col('gloss')),
      text('issue', '{attr.issue}', { ...label(8, col('paper')), align: 'center' },
        at('page', 'top-left', 0, 46, { width: mm(TRIM_W) })),
      text('lines', '{attr.lines}', { fontFamily: SERIF, fontSize: pt(12), lineHeight: 1.35,
        color: col('paper') }, at('page', 'top-left', MARGIN.outer, BAND + 4,
        { width: mm(150) })),
    ] } } };

Der Titelschriftzug besteht aus zwei Textelementen an derselben Stelle: eines in Papierweiß, das aus dem Foto ausgespart wird, und eines im Glanzlack darüber. Die Glanzfassung malt auf dem Bildschirm nichts und gibt der Platte die Form der Buchstaben, sodass auf dem gedruckten Titel der Schriftzug über dem glänzenden Himmel glänzt.

#5 · Die Veredelungsansichten und Folio

script.js · Zeilen 239–259im vollständigen Code
// 'flat' paints the inks and leaves the varnish out; 'map' marks the special plates in false
// colour (varnish in cyan) over a faded page; 'sheen' sweeps a light across the page.
const views = document.createElement('section');
views.id = 'finish-views';
views.style.cssText = 'display: flex; gap: 16px; justify-content: center; padding: 16px';
const VIEWS = { flat: t({ en: 'As it prints', es: 'Como se imprime' }),
  map: t({ en: 'The varnish plates', es: 'Las planchas de barniz' }),
  sheen: t({ en: 'Under a raking light', es: 'Con luz rasante' }) };
for (const [finishes, name] of Object.entries(VIEWS)) {
  const [figure, canvas, caption] = ['figure', 'canvas', 'figcaption']
    .map((tag) => document.createElement(tag));
  figure.style.margin = '0';
  canvas.style.width = '260px';
  canvas.setAttribute('role', 'img');
  canvas.setAttribute('aria-label', `${t({ en: 'The cover', es: 'La cubierta' })}: ${name}`);
  renderPageToCanvas(doc.pages[0], doc, canvas, { scale: 520 / doc.pages[0].width, finishes });
  caption.textContent = name;
  figure.append(canvas, caption);
  views.append(figure);
}
document.getElementById('pages').before(views);
script.js · Zeilen 138–144im vollständigen Code
const folio = {
  tilt: 26, yaw: -18,
  paper: { type: 'coatedMatte', grammage: 150 },
  binding: { type: 'paperback', cover: 'pages' },
  surface: { type: 'marble' },
  lighting: { environment: 'studio', intensity: 1.15 },
};

renderPageToCanvas nimmt eine Option finishes. 'flat' ist der Standard und zeigt die Seite, wie sie gedruckt wird; 'map' blendet die Seite ab und markiert jede Sonderplatte in Falschfarbe, den Lack in Cyan, den Glanz heller als den Soft-Touch; 'sheen' lässt ein Licht über die Seite wandern. Folio liest dieselbe Veredelungsmaske: Glanz fängt die Lichter, Soft-Touch nimmt sie weg.

Das ganze Rezept

Sandbox
// ═══ Postext Cookbook · Nº 192 · Spot gloss over a soft-touch magazine ═════════════════
// https://postext.dev/en/cookbook/spot-uv-photo-magazine
// Code: MIT · Text: original (CC BY 4.0) · Photographs: diffusion models
// Fonts: Bodoni Moda, Source Serif 4, Source Sans 3 (SIL OFL 1.1) · Needs postext ≥ 1.85.1
//
// A photography magazine whose pages are coated in a soft-touch varnish, with a gloss
// varnish laid over the photographs and the masthead only: the spot UV a printer sells as
// the contrast between a velvet page and a shining picture. Varnish puts no colour on the
// page, so the canvas shows the pages as they print and the finish views show the varnish.
import {
  buildDocumentWithFonts, renderPageToCanvas, registerResourceImage,
} from 'https://esm.sh/postext';
import { renderToPdf, decompressWoff2 } from 'https://esm.sh/postext-pdf';
import { createFolioFromDocument } from 'https://esm.sh/postext-folio';

const LANG = 'en'; // @lang: the language of the sample document ('en' | 'es')
const RECIPE = 'spot-uv-photo-magazine';

// ─── 1 · Design ─────────────────────────────────────────────────────────────
// #region answer: two varnishes, each a spot ink with a finish
// A varnish is a spot ink: its own plate in the PDF, clear on screen. Soft touch goes over
// the whole sheet, the gloss over the pictures and the masthead. Both overprint by default,
// so neither cuts a hole in the colours under it. Each has a hex of its own all the same:
// a print render tells inks apart by their hex.
const varnish = (hex, name, sheen) => ({ hex, model: 'spot',
  spot: { name, cmyk: { c: 0, m: 0, y: 0, k: 0 }, finish: { kind: 'varnish', sheen } } });
const palette = {
  velvet: varnish('#e9e4f0', 'Soft-touch varnish', 'softTouch'),
  gloss: varnish('#e4f0ee', 'Spot UV gloss', 'gloss'),
  // The colours that print: a near-black, a slate for the bands, the paper.
  ink: { hex: '#1d1d22', model: 'cmyk', cmyk: { c: 30, m: 20, y: 10, k: 95 } },
  slate: { hex: '#262b3a', model: 'cmyk', cmyk: { c: 80, m: 65, y: 35, k: 60 } },
  muted: { hex: '#6c6a70', model: 'cmyk', cmyk: { c: 0, m: 5, y: 0, k: 65 } },
  paper: { hex: '#ffffff', model: 'hex' },
};
// The ink table names both varnishes as the order to the printer will.
const PRINT = { standard: 'pdfx4', outputProfile: 'fogra51', convertImages: false, inks: [
  { name: 'Soft-touch varnish', finish: { kind: 'varnish', sheen: 'softTouch' } },
  { name: 'Spot UV gloss', finish: { kind: 'varnish', sheen: 'gloss' } }] };
// #endregion
const col = (id) => ({ ...palette[id], paletteId: id });
const colorPalette = [...Object.entries(palette).map(([id, value]) => ({ id, name: id, value })),
  { id: 'main-color', name: 'ink (defaults)', value: palette.ink }];

const [TRIM_W, TRIM_H] = [210, 280];
const MARGIN = { top: 18, bottom: 20, inner: 18, outer: 16 };
const LEAD = 13.6; // pt
const [DISPLAY, SERIF, SANS] = ['Bodoni Moda', 'Source Serif 4', 'Source Sans 3'];

Das zusammengesetzte script.js läuft unverändert: Fügen Sie es in das Modulskript einer beliebigen Seite ein, oder öffnen Sie das Rezept auf CodePen. Ordner des Rezepts auf GitHub ↗ (öffnet sich in einem neuen Tab)

Varianten

#Matt statt Soft-Touch

Ein einfacher Mattlack kostet weniger und zeigt denselben Kontrast, etwas weniger tief.

-  velvet: varnish('#e9e4f0', 'Soft-touch varnish', 'softTouch'),
+  velvet: varnish('#e9e4f0', 'Matte varnish', 'matte'),

#Glanz nur auf der Schrift

Lassen Sie die Fotos matt und legen Sie den Glanz nur über den Titelschriftzug und die Überschriften: Setzen Sie die Überschriften zweimal, wie den Schriftzug, und entfernen Sie die Kästen über den Bildern.

Häufige Fehler

  • Ein Lack mit dem Hex einer anderen Farbe wird als diese Farbe gedruckt. Geben Sie jedem Lack ein Hex, das sonst nichts verwendet.
  • Ein vollflächiger Lack, der nur bis zum Endformat reicht, lässt am Rand einen unlackierten Streifen, wenn der Bogen etwas schief geschnitten wird. Führen Sie ihn bis in den Anschnitt, wie den Kasten hier.
  • Soft-Touch wird oft als Kaschierung statt als Lack verkauft. Fragen Sie die Druckerei, welchen Plattennamen sie möchte, und setzen Sie ihn mit pdfName in der Farbtabelle.

Nachweise

Text
Eigener Text, CC BY 4.0
Bilder
  • A walker on a salt flat at dusk, on the cover · Generated With Diffusion Models · eigener Text
  • A fisherman mending a net · Generated With Diffusion Models · eigener Text
  • Pines in morning fog · Generated With Diffusion Models · eigener Text
  • A desert road between mesas · Generated With Diffusion Models · eigener Text
  • The salt flat at sunset, on the back cover · Generated With Diffusion Models · eigener Text
Schriften
Bodoni Moda (SIL OFL 1.1) · Source Serif 4 (SIL OFL 1.1) · Source Sans 3 (SIL OFL 1.1)
SandboxPDF