From 5957e64864ef22faa778780e150b6ea96824380c Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Fri, 8 Mar 2024 17:08:04 -0700 Subject: [PATCH] add page margin content (header image, page numbers) --- css/print.css | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++ src/Spec.ts | 3 +++ 2 files changed, 59 insertions(+) diff --git a/css/print.css b/css/print.css index 322b397c..32b3419f 100644 --- a/css/print.css +++ b/css/print.css @@ -26,3 +26,59 @@ p { #spec-container > emu-annex { page-break-before: always; } + +@page { + size: A4; +} + +@page { + @top-center { + background: contain no-repeat url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgcAAAAxCAMAAAB5w/qQAAADAFBMVEX////9/f75+vv6/P76+/z9/v/Q3OPz9/v0+fzx9fn8/P/8/P3y9vrp7/Pn8vj///72+f729/oUFBnQ3OXs8fX4+PrW4ebO3eTu9vv+///e6Ozl8Pb6/P/t8vX2egHu9/nz9fno8PPR3OL4/f7o7vLj7PDf5urr8PX09vr5+v73+Pz4+v3r7/Ps9ffc5+zQ2+Dg6e0SFBjk7vT8/Pvr9frj7fL//vzm7/Lg6Ozv8/jk7fDx+fzw+Pzv9/rw9ffr8vjS4OfV4+vv8/bo7PDc5urp7vHt9fju8ffk6/Lh6/HU4OXv8/fd5en6/v/2+/7d5+7j6e3a5OnS3eXS3OPV3eIREhfO3Obv9/3l6+7n6u7M3uQWFxzW4ej1ewHb4+rT3uPi6u/g6vDR3ufZ5+33+/8UExb2+PwWFhnt+Pzs9fvq8/Xp8vTe6e7Q3uXT2+Xb4+fv9fju8/YFBw/8///S2d/Z5evY4uba5e3X5Ozs8/bm7fAGChXr9/zY4+kNDRPP3ubP3eDy8/fi6+71/f7V3ujt8PXN1drU3ebO2uLz+v7e6PDd5ezR3+gREBPY4+gLEhcQERbe6u/R3ObU3N7M3uYKCw/b6PHV2uD6eQL9//7f5uzM0tfU4enM3unm7fLP2N0jJyvg6e/Iz9YyMzfa6O7T3uU9P0LV3+NgYGLi5en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OpuPBzz2aPg53jC3dpbFKq6ndKGzlZqXSfqnQyTnbPjZhUqpSGPukQcoX/40fqHllGAA3UPwk86A+llQfIJQeQX5A+l/pA9rvQCAmFeAAVMQAeh9usN2jV4KaF0i6SWEDiEV3qaJA1u7JjBRKLxCKQOpEKRTvq7TVq8ePQzQOC10IZHCpQUIq+lw0SHXAfmyAa/x3PJjbzqJhYIqAmbqGhqGbpoHOWIKpgqBpngniRTzLedacqGfZRGbuLwayTNPw1zqe1EL4AGMiy2aDQZNH28z9LBEwGWvjJhwhkMBjgaCKAfydI4QkSEJppDEpjYhKlGcEJW1t7mYH3hxCRFLzCheVr7qPdsnxwgQia5AeraUU4vZOIP5bBVmQpf2SXVy98DOR4FZVe6645tcORENL3PsGebg/fq/Wa04AAAAASUVORK5CYII); + height: 75mm; + content: ' '; + } +} + +:root { + counter-reset: pageNumber; + counter-set: pageNumber 1; + --page-number-style: lower-roman; +} + +@page { + counter-increment: pageNumber 1; +} + +emu-clause:first { + counter-set: pageNumber 1; + --page-number-style: decimal; +} + +@page :left { + @bottom-right { + content: '© Ecma International ' var(--current-year); + } + + @bottom-left { + content: counter(pageNumber, var(--page-number-style)); + } +} + +@page :right { + @bottom-left { + content: '© Ecma International ' var(--current-year); + } + + @bottom-right { + content: counter(pageNumber, var(--page-number-style)); + } +} + +@page :first { + @bottom-left { + content: ''; + } + @bottom-right { + content: ''; + } +} diff --git a/src/Spec.ts b/src/Spec.ts index 8bac5cdd..aab0ea5f 100644 --- a/src/Spec.ts +++ b/src/Spec.ts @@ -1107,6 +1107,9 @@ ${await utils.readFile(path.join(__dirname, '../js/multipage.js'))} printStyle.textContent = `@media print {\n${printCssContents}\n}`; this.doc.head.appendChild(printStyle); } + const currentYearStyle = this.doc.createElement('style'); + currentYearStyle.textContent = `:root { --current-year: ${new Date().getFullYear()}; }`; + this.doc.head.appendChild(currentYearStyle); this.addStyle( this.doc.head, `https://cdnjs.cloudflare.com/ajax/libs/highlight.js/${