Skip to content

Conversation

Ovgodd
Copy link
Collaborator

@Ovgodd Ovgodd commented Sep 15, 2025

Purpose

Add document title to PDF and DOCX export metadata for better accessibility.

issue 1130

metadata

Proposal

  • PDF: Added title prop to component in PDF exports
  • DOCX: Created addTitleToDocx() function to inject title into DOCX metadata via JSZip
  • Dependencies: Added jszip: "3.10.1" to manipulate DOCX files (which are ZIP archives)
  • Why JSZip: @blocknote/xl-docx-exporter seem's to don't support document properties natively, so we post-process the DOCX blob to modify docProps/core.xml

@Ovgodd Ovgodd self-assigned this Sep 15, 2025
@Ovgodd Ovgodd force-pushed the fix/1130-doc-title-metadata branch from e620f16 to 8d3543b Compare September 15, 2025 09:23
@Ovgodd Ovgodd requested a review from AntoLC September 15, 2025 09:24
@Ovgodd Ovgodd marked this pull request as ready for review September 15, 2025 09:26
ensures document title is preserved in exports to meet accessibility needs

Signed-off-by: Cyril <c.gromoff@gmail.com>
@Ovgodd Ovgodd force-pushed the fix/1130-doc-title-metadata branch from 8d3543b to 236540c Compare September 15, 2025 09:28
Copy link

github-actions bot commented Sep 15, 2025

Size Change: +28.6 kB (+0.78%)

Total Size: 3.68 MB

Filename Size Change
apps/impress/out/_next/static/chunks/1245.js 0 B -520 kB (removed) 🏆
apps/impress/out/_next/static/ebd29e4a/_buildManifest.js 0 B -889 B (removed) 🏆
apps/impress/out/_next/static/chunks/5361.js 549 kB +549 kB (new file) 🆕
apps/impress/out/_next/static/dc0b0da3/_buildManifest.js 884 B +884 B (new file) 🆕

compressed-size-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant