In breve
Un pieghevole per una mostra di mappe, pronto da mandare in tipografia. Mostra come aggiungere spazio oltre il bordo della pagina e i segni di taglio, e salvare un PDF nei colori delle macchine da stampa.
Che cosa comporrai
Il foglio di sala di Cartografías imaginarias, una mostra inventata di mappe di luoghi immaginari, così come va in tipografia, in spagnolo in tutte le edizioni di questa pagina. Ogni pagina di 170 × 227 mm sta su un foglio più grande di 22 mm che contiene l’abbondanza e i crocini di taglio. In copertina una rotta arancione attraversa un arcipelago in verdi a gradini ed esce dal rifilo nell’abbondanza. All’interno, quattro sale in Karla in bandiera si aprono sotto occhielli a forma di tappa e un’unghiatura arancione colloca il numero di pagina oltre il margine esterno; la quarta di copertina compone una pianta sopra una fascia di rilievo. Il pen esporta il file per la stampa, un PDF/X-4 separato per FOGRA51 (la condizione PSO Coated v3 della carta patinata da 150 g) con i suoi font, segnalibri ed etichette di pagina, e una prova in scala di grigi, ed esegue il preflight sull’impaginazione prima di offrirli. Nel file per la stampa le mappe e la pianta vengono da master di stampa con inchiostri scelti a mano, e il testo, l’unghiatura e gli anelli delle tappe usano gli stessi inchiostri tramite una tavolozza definita in CMYK.
Questa ricetta risponde a
- Come preparo un PDF pronto per la stampa con abbondanza, crocini di taglio, segnalibri, etichette di pagina e uno spazio colore?
- Come esporto nel browser un vero PDF con i font incorporati?
- Come aggiungo una filigrana, una tinta di fondo o un’immagine decorativa su ogni pagina?
La risposta breve
const BLEED = 3; // mm of artwork past the trim: the cover, the tab and the back band reach it
// Hook-up: config().page.cutLines. A mark starts markOffset outside the trim (3 mm by default)
// and never inside the bleed, and runs 5 mm (markLength). Each page grows by doc.trimOffset
// a side, bleed + offset + mark: 11 mm here.
const cutLines = { enabled: true, bleed: mm(BLEED) };
// Hook-up: config().print. PDF/X-4 for the press on FOGRA51 (PSO Coated v3, the leaflet's
// 150 g coated matte): every colour separated through the profile (the authored ones as
// written), 100 % K text overprinting, the output intent, TrimBox and BleedBox on each page.
// The 7.5 pt bold labels in forest hold in four inks on coated stock: the small-text check
// starts at 7 pt instead of 9.
const PRINT = { standard: 'pdfx4', outputProfile: 'fogra51', preflight: { smallTextSize: pt(7) } };
// Where the profiles are fetched from: postext.dev serves postext's icc/ folder at /icc/ (any
// copy of it works, and so does the npm CDN's postext/icc/).
const PROFILES = 'https://postext.dev/icc/';
// `masters` holds print-master bytes by fileId (section 2 writes them). The proof is an
// ordinary greyscale PDF: no PDF/X, which would force CMYK.
function pressPdf(doc, kind, masters) {
const press = kind === 'press';
return renderToPdf(doc, {
fontProvider: fontsourceProvider, // Fontsource's files; TrueType faces are subset
// The press file takes config().print, its profile fetched from PROFILES
// (outputProfile: the .icc bytes, to hand it over yourself).
profileBaseUrl: PROFILES,
...(press ? {} : { print: { standard: 'none' }, colorSpace: 'grayscale' }),
// renderToPdf asks for a drawing's master (svg.pdfFileId) first, then for its SVG. The
// proof answers the SVG only, which its grey conversion can reach; a master stays in CMYK.
resourceBytes: (fileId) => (press && masters.get(fileId)) || imageBytes(fileId),
}); // bookmarks (from the headings) and /PageLabels (from the folios) come by default
}
Ingredienti
- Funzionalità
- Abbondanza e segni di taglioPDF in CMYK e in scala di grigiMaster di stampa per gli SVGEsportazione in PDFFont incorporati nel PDFSegnalibri del PDFFasce al vivo e unghiatureAncoraggio degli elementi del progettoImmagini nei progetti di paginaTestatine secondo il ruolo della paginaTestatine per sezioneStili di titoloCopertine, frontespizi e colophonAperture progettateAttributi dei titoliMetadati del documentoTestatine e folioFigure e tabelle come risorseFigura e Tabella nella tua linguaTavolozza di colori semantica
- Usa anche
- Citazioni che collocano le figureTitoli numeratiStili di paragrafoTipi di risorsa personalizzatiGeometria della sezioneCapitoli non numerati
- Tipo
- Karla, Space Grotesk, Space Mono (SIL OFL 1.1)
- Risorse
- Nessuna: ogni immagine è disegnata nel codice
Preparazione
#1 · Scegli i colori dello schermo per le loro lastre
const palette = {
ink: '#161616', // text: a neutral grey prints on the black plate alone (K95 on FOGRA51)
muted: '#666666', // the running heads, on black alone for the same reason (K66)
forest: '#0b3d2e', // the sea, the kickers, the back band
signal: '#ff6626', // route, waypoints, tab
sage: '#9fb8a8', // high ground; small type on forest
paper: '#f4f1ea', // type on forest: reversed out, it prints no ink at all
};
// The colours authored in CMYK (%), the same builds as the print masters (section 2), so the
// type, the tab and the drawings share their inks. Without them the profile would separate
// the forest as C90 M43 Y71 K62 and the orange as C0 M70 Y90 K0, a shade off the route.
const AUTHORED = { forest: [100, 45, 80, 55], signal: [0, 60, 85, 0], sage: [40, 20, 35, 0],
paper: [0, 0, 0, 0] };
const cmyk = ([c, m, y, k]) => ({ c, m, y, k });
const value = (id) => (AUTHORED[id]
? { hex: palette[id], model: 'cmyk', cmyk: cmyk(AUTHORED[id]) }
: { hex: palette[id], model: 'hex' });
// col(id): a palette-linked colour: the hex for the screen and, where authored, its build.
const col = (id) => ({ ...value(id), paletteId: id });
const colorPalette = [
...Object.keys(palette).map((id) => ({ id, name: id, value: value(id) })),
// The engine's defaults link to 'main-color': point it at the forest, so nothing prints blue.
{ id: 'main-color', name: 'forest (defaults)', value: { hex: palette.forest, model: 'hex' } },
];
print: { standard: 'pdfx4', outputProfile: 'fogra51' } nella configurazione separa ogni colore attraverso il profilo FOGRA51 fornito con postext. I grigi neutri si stampano sulla sola lastra del nero, con un K scelto perché il tono corrisponda: #161616 diventa K95 e il #666666 delle testatine K66, e il testo al 100 % K va in sovrastampa. Il profilo stamperebbe il verde foresta come C90 M43 Y71 K62 e l’arancione come C0 M70 Y90 K0, una sfumatura diversa dalla rotta dei master (passo 5), quindi questi due, il verde salvia e il colore della carta sono definiti in CMYK: ColorValue.cmyk contiene la composizione dei quattro colori, l’esadecimale resta per lo schermo, e ogni uso collegato alla tavolozza stampa la composizione così come è scritta. Il colore della carta è C0 M0 Y0 K0: il testo in negativo sul verde foresta non stampa inchiostro, quindi nessuna lastra può spostarlo.
#2 · Un’unghiatura che sopravvive alla taglierina
const TAB = { w: 10, h: 24 }; // the tab as it will be trimmed, mm; its foot is level with the text
const tab = (parity) => {
const edge = parity === 'even' ? 'bottom-left' : 'bottom-right'; // the fore-edge
const from = (to, y) => ({ anchor: { to, edge }, offset: { y: mm(y) } });
return [
// The box hangs from the bleed frame and BLEED of its width is trimmed off, so a cut that
// lands a millimetre outside the trim still leaves orange at the edge.
{ kind: 'box', id: `tab-${parity}`, style: { backgroundColor: col('signal') },
placement: { ...from('bleed', -(FOOT + BLEED)), size: { width: mm(TAB.w + BLEED),
height: mm(TAB.h) } } },
// The folio hangs from the trim frame ('page'), so it centres on the part left after the cut.
{ kind: 'text', id: `folio-${parity}`, content: '{pageNumber}', ...label, align: 'center',
fontSize: pt(11), letterSpacing: pt(0), color: col('ink'),
placement: { ...from('page', -FOOT), size: { width: mm(TAB.w), height: mm(TAB.h) } } },
].map((element) => ({ ...element, parity, pages: 'body' })); // never on the covers
};
const head = (parity, content) => ({ kind: 'text', id: `head-${parity}`, content, ...label,
color: col('muted'), parity, pages: 'body',
placement: { anchor: { to: 'container', edge: parity === 'even' ? 'top-left' : 'top-right' },
offset: { y: mm(11) } } });
const header = { elements: [head('even', '{title}'), head('odd', '{subtitle}')] };
const footer = { elements: [...tab('even'), ...tab('odd')] };
Il riquadro dell’unghiatura è ancorato all’area di abbondanza ed è più largo di BLEED dell’unghiatura finita, così un taglio che cade un millimetro fuori dal rifilo lascia comunque arancione sul bordo; il numero di pagina è ancorato al formato della pagina, cioè al rifilo, e si centra sui 10 mm che restano. parity sceglie le pagine su cui compare ogni elemento e edge cambia con essa per raggiungere il margine esterno, mentre pages: 'body' tiene l’unghiatura e le testatine ({title} e {subtitle} dal front matter) lontane da entrambe le copertine, che contano come aperture perché ciascuna comincia con un titolo a tutta larghezza o che va a pagina nuova. Ogni elemento di intestazione o piè di pagina si ripete in questo modo, quindi un image con parity e pages mette una filigrana o un’immagine decorativa su ogni pagina; gli slot disegnano sopra il testo, e una tinta dietro va in page.backgroundColor.
#3 · Grafica fino all’abbondanza, testo dentro il rifilo
const BAND = 44; // mm from the trim foot to the top of the back band
const onForest = { color: col('paper'), align: 'left', overflow: 'wrap' };
const art = (resourceId, edge) => ({ kind: 'image', id: resourceId, resourceId,
placement: { anchor: { to: 'bleed', edge }, size: { width: 'fill' } } }); // height: its ratio
// The map is as tall as the sheet and the cover reserves down to its foot, so the lead
// starts on page 2. span: 'page' makes the cover an opener, so furniture set to
// pages: 'body' skips it.
const cover = { id: 'cover', numbered: false, span: 'page', advancedDesign: { enabled: true,
slot: { elements: [ // paint order: the map first, the type on top
art('cubierta', 'top-left'),
{ kind: 'text', id: 'kicker', content: '{attr.kicker}', ...label, color: col('sage'),
placement: { anchor: { to: 'container', edge: 'top-left' }, offset: { y: mm(6) } } },
{ kind: 'text', id: 'title', content: '{titleText}', fontFamily: 'Space Grotesk',
fontWeight: 700, fontSize: pt(50), lineHeight: 0.98, ...onForest,
placement: { anchor: { to: '#kicker', edge: 'below' }, offset: { y: mm(4) },
size: { width: mm(132) } } },
{ kind: 'text', id: 'subtitle', content: '{subtitle}', fontFamily: 'Karla', fontSize: pt(13),
...onForest, placement: { anchor: { to: '#title', edge: 'below' }, offset: { y: mm(5) } } },
] } },
footer: { elements: [ // the cover's own foot: dates and place, over open sea
{ kind: 'text', id: 'dates', content: '{attr.fechas}', ...label, color: col('paper'),
placement: { anchor: { to: 'container', edge: 'bottom-left' }, offset: { y: mm(-15) } } },
{ kind: 'text', id: 'place', content: '{attr.lugar}', ...label, color: col('sage'),
placement: { anchor: { to: '#dates', edge: 'below' }, offset: { y: mm(1.6) } } },
] } };
const back = { id: 'back', numbered: false, breakBefore: { enabled: true, parity: 'any' },
advancedDesign: room('{attr.kicker}'),
margins: { bottom: mm(BAND + 8) }, // the text stops 8 mm above the band
footer: { elements: [
art('banda', 'bottom-left'),
{ kind: 'text', id: 'venue', content: '{attr.lugar}', fontFamily: 'Space Grotesk',
fontWeight: 700, fontSize: pt(20), ...onForest, // on the band, level with the text edge
placement: { anchor: { to: '#banda', edge: 'align-top' }, offset: { x: mm(BLEED + OUTER),
y: mm(6) } } },
{ kind: 'text', id: 'address', content: '{attr.direccion}', fontFamily: 'Karla',
fontSize: pt(10), ...onForest,
placement: { anchor: { to: '#venue', edge: 'below' }, offset: { y: mm(1.5) } } },
{ kind: 'text', id: 'when', content: '{attr.fechas}', ...label, color: col('sage'),
placement: { anchor: { to: '#address', edge: 'below' }, offset: { y: mm(4) } } },
{ kind: 'text', id: 'colophon', content: '{attr.colofon}', ...label, fontWeight: 400,
// 6.3 pt in sage would be three inks on a four-ink band: reversed to paper, it prints
// no ink and no plate can shift it (the preflight's small-text check).
fontSize: pt(6.3), letterSpacing: pt(0), textTransform: 'none', lineHeight: 1.4,
color: col('paper'), overflow: 'wrap',
placement: { anchor: { to: 'page', edge: 'bottom-left' }, offset: { x: mm(OUTER),
y: mm(-6) }, size: { width: mm(78) } } }, // 57 monospaced characters a line
] } };
cutLines aggiunge l’abbondanza, la distanza dei crocini e i 5 mm del crocino a ogni lato della pagina, qui 11 mm. La distanza è di 3 mm per impostazione predefinita, la stessa di questa abbondanza, quindi i crocini cominciano al bordo dell’abbondanza e vanno verso l’esterno; con un’abbondanza più larga comincerebbero comunque al suo bordo, mai al suo interno. Un elemento immagine ancorato all’abbondanza con width: 'fill' prende la larghezza di quell’area e ne conserva le proporzioni: la mappa di copertina è disegnata a 176 × 233 mm, il rifilo più 3 mm per lato, così arriva al bordo dell’abbondanza dove cominciano i crocini, mentre il testo è ancorato all’area del testo, ben dentro il rifilo. La quarta di copertina è uno stile di titolo il cui piè di pagina sostituisce quello del documento, con una fascia dello stesso generatore ancorata al piede dell’abbondanza e un margine di piede che ferma il testo 8 mm sopra di essa.
#4 · Titoli che diventano segnalibri
headings: {
// A designed heading keeps its own text, hidden, for the bookmarks and the tags. Set it in
// a face the pages already load, or the PDF embeds Open Sans for that text alone.
fontFamily: 'Space Grotesk',
levels: [
// Rooms follow on: the H1's page break is off. The back cover breaks through its style,
// and the front one fills its page. The template numbers kicker and bookmark: "Sala 1
// Una isla en ninguna parte".
{ level: 1, numberingTemplate: 'Sala {1}', breakBefore: { enabled: false },
marginTop: pt(LEAD), advancedDesign: room('{number} · {attr.fecha}') },
],
},
renderToPdf costruisce i segnalibri dai titoli, quindi ogni sala è un titolo di livello 1 che prosegue senza interruzione di pagina, e numberingTemplate dà all’occhiello il suo {number} e al segnalibro il suo prefisso: il PDF elenca la copertina, da «Sala 1 Una isla en ninguna parte» a «Sala 4 La isla del tesoro», e le informazioni pratiche. Un titolo con una grafica nasconde il testo ma lo conserva per i segnalibri e i tag; senza fontFamily quel testo nascosto è composto in Open Sans 700, che le pagine caricherebbero e il PDF incorporerebbe solo per quel testo. Le etichette di pagina seguono page.pageNumbering, lasciato al valore predefinito, decimale da 1, così la pagina 3 in un visualizzatore PDF è la pagina la cui unghiatura riporta 3.
#5 · Master di stampa con inchiostri esatti
// C, M, Y, K in %, one build per colour of the drawings, matched to the screen colours on a
// proof. The palette authors forest, signal, sage and paper with these same builds, so the
// route matches the tab and the kickers match the sea.
const INKS = { forest: [100, 45, 80, 55], shallows: [100, 50, 85, 40], coast: [90, 50, 85, 20],
lowland: [80, 40, 75, 5], upland: [50, 15, 45, 20], sage: [40, 20, 35, 0],
summit: [10, 5, 10, 0], tint: [5, 0, 5, 5], signal: [0, 60, 85, 0], paper: [0, 0, 0, 0] };
function pdfPage(w, h, shapes) { // w, h in mm; the content stream flips y to match the SVG
const s = 72 / 25.4; // pt per mm
const ink = (id, op) => `${INKS[id].map((v) => v / 100).join(' ')} ${op}`;
const ops = (d) => d.replace(/([MLCZ])([^MLCZ]*)/g,
(_, c, v) => `${v.trim()} ${{ M: 'm', L: 'l', C: 'c', Z: 'h' }[c]} `.trimStart());
const body = shapes.map(({ d, fill, stroke, width, dash }) => [
'q', fill && ink(fill, 'k'), stroke && ink(stroke, 'K'), stroke && `${width} w 1 J 1 j`,
dash && `[${dash.join(' ')}] 0 d`, ops(d), fill ? 'f' : 'S', 'Q',
].filter(Boolean).join(' ')).join('\n');
const stream = `${s} 0 0 ${-s} 0 ${h * s} cm\n${body}`;
const objects = ['<< /Type /Catalog /Pages 2 0 R >>', '<< /Type /Pages /Kids [3 0 R] /Count 1 >>',
`<< /Type /Page /Parent 2 0 R /MediaBox [0 0 ${n(w * s)} ${n(h * s)}] /Contents 4 0 R >>`,
`<< /Length ${stream.length} >>\nstream\n${stream}\nendstream`];
let pdf = '%PDF-1.4\n';
const offsets = objects.map((object, i) => {
const offset = pdf.length;
pdf += `${i + 1} 0 obj\n${object}\nendobj\n`;
return offset;
});
const xref = pdf.length;
pdf += `xref\n0 ${objects.length + 1}\n0000000000 65535 f \n`
+ offsets.map((o) => `${String(o).padStart(10, '0')} 00000 n \n`).join('')
+ `trailer\n<< /Size ${objects.length + 1} /Root 1 0 R >>\nstartxref\n${xref}\n%%EOF\n`;
return new TextEncoder().encode(pdf); // ASCII only, so string length = byte length
}
const masters = new Map(Object.entries(DRAWINGS) // by fileId: cubierta.pdf, banda.pdf, plano.pdf
.map(([id, [size, shapes]]) => [`${id}.pdf`, pdfPage(...size, shapes)]));
Ogni disegno è definito una volta sola, come tracciati. La regione art li trasforma nell’SVG che il canvas disegna, e questa regione scrive gli stessi tracciati in un PDF CMYK di una pagina con composizioni scelte perché una prova corrisponda allo schermo, il che mette il mare a C100 M45 Y80 K55, il verde foresta della tavolozza. Ogni risorsa indica il proprio master in svg.pdfFileId; renderToPdf chiede quell’id, pressPdf() nella risposta breve risponde con i byte del master, e postext-pdf incorpora quella pagina invariata, come vettori negli inchiostri propri del master. Questo vale per la pianta, che è una figura, e per la mappa di copertina e la fascia posteriore, che sono elementi grafici. La prova in scala di grigi riceve invece gli SVG, perché un master incorporato non viene mai convertito e resterebbe a colori.
La ricetta completa
// ═══ Postext Cookbook · Nº 024 · Print-ready PDF: bleed, crop marks and CMYK ═══════════
// https://postext.dev/en/cookbook/print-ready-pdf
// Code: MIT · Text: original (CC BY 4.0) · Maps: generated in code (CC BY 4.0)
// Fonts: Karla, Space Grotesk, Space Mono (SIL OFL 1.1) · Needs postext ≥ 1.25.0
// An exhibition leaflet set up for the press: bleed and crop marks on every page, and a
// PDF/X-4 file separated for FOGRA51 that embeds its fonts and takes the maps and the floor
// plan from print masters, checked by the preflight before it is offered.
import {
buildDocumentWithFonts, renderPageToCanvas, registerResourceImage, defaultResourceTypes,
preflightDocument, loadOutputProfile, outputTransform,
} from 'https://esm.sh/postext';
import { renderToPdf, decompressWoff2 } from 'https://esm.sh/postext-pdf';
const LANG = 'es'; // @lang: the language of the sample document (this recipe is Spanish only)
const RECIPE = 'print-ready-pdf';
// ─── 1 · Design ─────────────────────────────────────────────────────────────
// #region palette: screen colours, and for four of them the inks the press prints them in
const palette = {
ink: '#161616', // text: a neutral grey prints on the black plate alone (K95 on FOGRA51)
muted: '#666666', // the running heads, on black alone for the same reason (K66)
forest: '#0b3d2e', // the sea, the kickers, the back band
signal: '#ff6626', // route, waypoints, tab
sage: '#9fb8a8', // high ground; small type on forest
paper: '#f4f1ea', // type on forest: reversed out, it prints no ink at all
};
// The colours authored in CMYK (%), the same builds as the print masters (section 2), so the
// type, the tab and the drawings share their inks. Without them the profile would separate
// the forest as C90 M43 Y71 K62 and the orange as C0 M70 Y90 K0, a shade off the route.
const AUTHORED = { forest: [100, 45, 80, 55], signal: [0, 60, 85, 0], sage: [40, 20, 35, 0],
paper: [0, 0, 0, 0] };
const cmyk = ([c, m, y, k]) => ({ c, m, y, k });
const value = (id) => (AUTHORED[id]
? { hex: palette[id], model: 'cmyk', cmyk: cmyk(AUTHORED[id]) }
: { hex: palette[id], model: 'hex' });
// col(id): a palette-linked colour: the hex for the screen and, where authored, its build.
const col = (id) => ({ ...value(id), paletteId: id });
const colorPalette = [
...Object.keys(palette).map((id) => ({ id, name: id, value: value(id) })),
// The engine's defaults link to 'main-color': point it at the forest, so nothing prints blue.
{ id: 'main-color', name: 'forest (defaults)', value: { hex: palette.forest, model: 'hex' } },
];
// #endregion
// #region answer: bleed and crop marks on every page; a CMYK PDF that swaps in print masters
const BLEED = 3; // mm of artwork past the trim: the cover, the tab and the back band reach it
// Hook-up: config().page.cutLines. A mark starts markOffset outside the trim (3 mm by default)
// and never inside the bleed, and runs 5 mm (markLength). Each page grows by doc.trimOffset
Lo script.js composto funziona così com’è: incollalo nello script modulo di qualsiasi pagina, oppure apri la ricetta su CodePen. Cartella della ricetta su GitHub ↗ (si apre in una nuova scheda)
Varianti
#Chiedi 5 mm di abbondanza
La grafica, l’unghiatura e la barra della scala sono dimensionate a partire da BLEED, e i crocini cominciano al bordo dell’abbondanza, quindi a una tipografia che vuole 5 mm basta questa modifica, e ogni foglio cresce a 196 × 253 mm.
-const BLEED = 3; // mm of artwork past the trim: the cover, the tab and the back band reach it
+const BLEED = 5; // mm of artwork past the trim: the cover, the tab and the back band reach it#Stampa la grafica dai suoi SVG
Senza pdfFileId il file per la stampa disegna ogni immagine dal suo SVG, sempre come vettori e attraverso il profilo: il verde foresta, definito in CMYK, mantiene C100 M45 Y80 K55, mentre gli altri verdi delle isole prendono le separazioni del profilo invece di quelle scelte a mano.
- updatedAt: 0, ...extra, svg: { fileId: `${id}.svg`, pdfFileId: `${id}.pdf`,
+ updatedAt: 0, ...extra, svg: { fileId: `${id}.svg`,Errori frequenti
Errore frequente
Niente <marker> né filtri nelle illustrazioni SVG (ripiego raster)
Una figura SVG resta vettoriale nel PDF solo senza <marker>, filtri e maschere; altrimenti ripiega su un raster, e filtri annidati in profondità possono farla sparire in Chrome. Disegna le punte delle frecce come tracciati. Figure e tabelle come risorse →
Errore frequente
I file di Fontsource coprono le lettere, non i simboli
Il kit incorpora il file latin di Fontsource di un carattere, più il suo file latin-ext per č, ł, † e il suo file greek per α, χ (nelle famiglie che ne hanno uno: Lora e Gelasio no), quando il testo li compone, a schermo e nel PDF. Simboli come →, ≈, ✓ e ★ non sono in nessuno di quei file e spariscono nel PDF: disegnali, componili come matematica o scegli un carattere i cui file li contengano. Font incorporati nel PDF →
- Uno standard PDF/X scrive sempre in CMYK, qualunque valore abbia
colorSpace, quindi la prova in scala di grigi sovrascriveprintcon{ standard: 'none' }accanto acolorSpace: 'grayscale'. - Un’esportazione PDF/X fallisce senza il suo profilo di output.
renderToPdfscaricafogra51.iccdaprofileBaseUrl(qui/icc/di postext.dev); passa i byte del file comeoutputProfileper servirlo tu stesso. - Il preflight segnala il testo sotto i 9 pt composto in più di un inchiostro. Le etichette in grassetto da 7,5 pt in verde foresta reggono in quattro inchiostri su carta patinata, quindi
print.preflight.smallTextSizeè 7 pt; il colophon da 6,3 pt, che in verde salvia sarebbe in tre inchiostri su una fascia in quadricromia, è invece in negativo, nel colore della carta. - Un file PDF/X non contiene annotazioni di link, perché un file per la stampa non può averne nell’area di abbondanza (bleed box); i segnalibri restano.
- Una volta costruito il file, ogni pulsante diventa un link «Open the PDF ↗» e un link di download, e solo i link di download riportano i nomi dei file.
Crediti
- Ricetta
- Ignacio Ferro
- Testo
- Testo originale, CC BY 4.0
- Font
- Karla (SIL OFL 1.1) · Space Grotesk (SIL OFL 1.1) · Space Mono (SIL OFL 1.1)
- Codice
- MIT, come Postext
Modifica questo testo ↗ (si apre in una nuova scheda)Cartella della ricetta su GitHub ↗ (si apre in una nuova scheda)


