Skip to content

fix(desktop): preserve DOCX layouts and restore packaged PDF previews - #617

Merged
endxxxx merged 1 commit into
MemTensor:survey_masterfrom
endxxxx:survey_master
Oct 12, 2026
Merged

endxxxx merged 1 commit into
MemTensor:survey_masterfrom
endxxxx:survey_master

Conversation

@endxxxx

@endxxxx endxxxx commented Oct 12, 2026

Copy link
Copy Markdown
Collaborator

DOCX previews currently discard table column widths and merged cells, causing patent request forms to collapse into narrow columns. This change preserves the table grid, horizontal and vertical merges, paragraph formatting and line breaks, embedded images, and supported VML drawings in the in-app preview.

PDF previews now instantiate the bundled PDF.js worker directly, and the packaged renderer server serves .mjs with a JavaScript MIME type so installed applications can load the fallback worker.

Validation:

  • DOCX parser, file preview, and PDF preview tests: 29 passed.
  • Packaged renderer static server test: 1 passed.
  • Frontend TypeScript check and Vite production build passed.
  • git diff --check passed.

The DOCX viewer remains a browser preview, with partial Word layout coverage. This change does not introduce LibreOffice or increase the package with an Office rendering runtime.

@endxxxx
endxxxx requested a review from ZongYue99 as a code owner October 12, 2026 09:42
@endxxxx
endxxxx merged commit 0c6afa9 into MemTensor:survey_master Oct 12, 2026
1 check passed
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.

1 participant