mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[PR #21364] refactor: PDF export #41677
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/21364
Author: @ShirasawaSama
Created: 2/13/2026
Status: 🔄 Open
Base:
dev← Head:refactor/optimize-PDF-export-logic📝 Commits (10+)
8eb3292refactor: unify PDF export logice5e4826fix: fix PDF export logic issue in ChatMenu14f3be1fix: fix PDF export of NoteEditor945d71erefactor: optimize PDF export logicf136875feat: adjust export quality to 0.956bb4fafrefactor: refactor PDF export logic241b65ffeat: refactor pdf logic513450cfeat: remove childSplitSelectord228675fix: Correctly export all PDF content01e4317pref: improve performance📊 Changes
24 files changed (+1227 additions, -532 deletions)
View changed files
📝
package-lock.json(+15 -0)📝
package.json(+2 -0)➕
src/lib/components/chat/ExportProgressModal.svelte(+57 -0)📝
src/lib/components/chat/Messages.svelte(+18 -4)📝
src/lib/components/chat/Messages/CodeBlock.svelte(+77 -59)📝
src/lib/components/chat/Messages/ContentRenderer.svelte(+7 -0)📝
src/lib/components/chat/Messages/Markdown.svelte(+2 -0)📝
src/lib/components/chat/Messages/Markdown/KatexRenderer.svelte(+13 -2)📝
src/lib/components/chat/Messages/Markdown/MarkdownTokens.svelte(+25 -14)📝
src/lib/components/chat/Messages/Message.svelte(+8 -2)📝
src/lib/components/chat/Messages/MultiResponseMessages.svelte(+9 -3)📝
src/lib/components/chat/Messages/ResponseMessage.svelte(+5 -2)📝
src/lib/components/chat/Messages/UserMessage.svelte(+2 -0)📝
src/lib/components/common/SVGPanZoom.svelte(+2 -1)📝
src/lib/components/layout/Navbar/Menu.svelte(+39 -164)📝
src/lib/components/layout/Sidebar/ChatMenu.svelte(+50 -169)📝
src/lib/components/notes/NoteEditor.svelte(+5 -4)📝
src/lib/components/notes/Notes.svelte(+6 -3)📝
src/lib/components/notes/utils.ts(+0 -105)📝
src/lib/stores/index.ts(+23 -0)...and 4 more files
📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions to discuss your idea/fix with the community before creating a pull request, and describe your changes before submitting a pull request.
This is to ensure large feature PRs are discussed with the community first, before starting work on it. If the community does not want this feature or it is not relevant for Open WebUI as a project, it can be identified in the discussion before working on the feature and submitting the PR.
Before submitting, make sure you've checked the following:
devbranch. PRs targetingmainwill be immediately closed.devto ensure no unrelated commits (e.g. frommain) are included. Push updates to the existing PR branch instead of closing and reopening.Changelog Entry
Description
Fix pdf export (support for over 300 pages, mermaid and vega charts, katex formulas, code blocks, tables)
Added
Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Screenshots or Videos
Notes:

Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.