Skip to content

Fix trimmed PDF exports: restate slide layout in reveal's print view - #4

Merged
fmadore merged 2 commits into
mainfrom
claude/pdf-margins-offline-removal-c3lqkh
Jul 23, 2026
Merged

Fix trimmed PDF exports: restate slide layout in reveal's print view#4
fmadore merged 2 commits into
mainfrom
claude/pdf-margins-offline-removal-c3lqkh

Conversation

@fmadore

@fmadore fmadore commented Jul 23, 2026

Copy link
Copy Markdown
Owner

reveal's print view (?print-pdf) re-parents every slide into a .pdf-page
wrapper and hard-resets it (padding: 0 !important, display: block
!important), expecting the theme to restate its layout for print. The
theme's slide rule only matched .slides > section, so exported PDFs
rendered every slide flush against the page edge with a collapsed
height — content trimmed at the top and right.

  • theme.css: restate the padded flex column (and .balance centring) for
    html.reveal-print .pdf-page > section
  • deck.js: in print mode, run the overflow auto-fit over every slide
    once the pdf layout and webfonts have settled — every slide prints,
    not just the current one

Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01NZkxDar32S6MNrrPBuum3G

claude added 2 commits July 23, 2026 19:02
reveal's print view (?print-pdf) re-parents every slide into a .pdf-page
wrapper and hard-resets it (padding: 0 !important, display: block
!important), expecting the theme to restate its layout for print. The
theme's slide rule only matched .slides > section, so exported PDFs
rendered every slide flush against the page edge with a collapsed
height — content trimmed at the top and right.

- theme.css: restate the padded flex column (and .balance centring) for
  html.reveal-print .pdf-page > section
- deck.js: in print mode, run the overflow auto-fit over every slide
  once the pdf layout and webfonts have settled — every slide prints,
  not just the current one

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZkxDar32S6MNrrPBuum3G
The landing page linked an 'Offline copy' next to each talk's PDF. Drop
the link and the whole bundle pipeline behind it: tools/build-offline.py,
the CI build step, and the offline.zip references in the audit allowlist,
the export hash exclusions and the docs. Gitignore the deck extras a
local export-pdf run writes next to each talk.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NZkxDar32S6MNrrPBuum3G
@fmadore
fmadore merged commit 1e77001 into main Jul 23, 2026
2 checks passed
@fmadore
fmadore deleted the claude/pdf-margins-offline-removal-c3lqkh branch July 27, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants