I have searched the existing issues and discussions.
I am using the latest version of Open WebUI.
Installation Method
Pip Install
Open WebUI Version
v0.6.13
Ollama Version (if applicable)
No response
Operating System
centos7.9
Browser (if applicable)
No response
Confirmation
I have read and followed all instructions in README.md.
I am using the latest version of both Open WebUI and Ollama.
I have included the browser console logs.
I have included the Docker container logs.
I have provided every relevant configuration, setting, and environment variable used in my setup.
I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
Start with the initial platform/version/OS and dependencies used,
Specify exact install/launch/configure commands,
List URLs visited, user input (incl. example values/emails/passwords if needed),
Describe all options and toggles enabled or changed,
Include any files or environmental changes,
Identify the expected and actual result at each stage,
Ensure any reasonably skilled user can follow and hit the same issue.
Expected Behavior
Export a PDF without garbled text
Actual Behavior
When I enable the 'Styled PDF Export' feature, the exported PDF of the conversation becomes garbled.
Originally created by @gongshaojie12 on GitHub (Jun 6, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14715
### Check Existing Issues
- [x] I have searched the existing issues and discussions.
- [x] I am using the latest version of Open WebUI.
### Installation Method
Pip Install
### Open WebUI Version
v0.6.13
### Ollama Version (if applicable)
_No response_
### Operating System
centos7.9
### Browser (if applicable)
_No response_
### Confirmation
- [x] I have read and followed all instructions in `README.md`.
- [x] I am using the latest version of **both** Open WebUI and Ollama.
- [x] I have included the browser console logs.
- [x] I have included the Docker container logs.
- [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.**
- [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
- [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps:
- Start with the initial platform/version/OS and dependencies used,
- Specify exact install/launch/configure commands,
- List URLs visited, user input (incl. example values/emails/passwords if needed),
- Describe all options and toggles enabled or changed,
- Include any files or environmental changes,
- Identify the expected and actual result at each stage,
- Ensure any reasonably skilled user can follow and hit the same issue.
### Expected Behavior
Export a PDF without garbled text
### Actual Behavior
When I enable the 'Styled PDF Export' feature, the exported PDF of the conversation becomes garbled.

**Chat history**

**exported PDF**
[chat-汽车对比 🚗 长安 vs MG.pdf](https://github.com/user-attachments/files/20621176/chat-.vs.MG.pdf)
How can I fix the garbled text issue?
### Steps to Reproduce
None
### Logs & Screenshots
None
### Additional Information
_No response_
GiteaMirror
added the bug label 2026-05-05 18:29:41 -05:00
To fix stylized font use (not stylized create pdf with "photo" chat images) it's neccessary refact the function ( similar as is done in backend/open_webui/utils/pdf_generator.py)
<!-- gh-comment-id:2948399867 -->
@rgaricano commented on GitHub (Jun 6, 2025):
To fix stylized font use (not stylized create pdf with "photo" chat images) it's neccessary refact the function ( similar as is done in [backend/open_webui/utils/pdf_generator.py](https://github.com/open-webui/open-webui/blob/53764fe64884da147359e54ed6d9607fe57f1600/backend/open_webui/utils/pdf_generator.py#L16))
It need fonts be added to jspdf object (ref: https://github.com/parallax/jsPDF?tab=readme-ov-file#use-of-unicode-characters--utf-8 ), but i'm afraid that jspdf don't have any method to "fallbackfont" (as fpdf2 does), i don't know if only adding fonts could be solved.
A possible solution is keep jspdf function for [stylized pdf ](https://github.com/open-webui/open-webui/blob/53764fe64884da147359e54ed6d9607fe57f1600/src/lib/components/layout/Sidebar/ChatMenu.svelte#L84)& for [not stylized](https://github.com/open-webui/open-webui/blob/53764fe64884da147359e54ed6d9607fe57f1600/src/lib/components/layout/Sidebar/ChatMenu.svelte#L156) redirect to https://github.com/open-webui/open-webui/blob/53764fe64884da147359e54ed6d9607fe57f1600/backend/open_webui/routers/utils.py#L91 (/pdf endpoint that route to pdf_generator.py )
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @gongshaojie12 on GitHub (Jun 6, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14715
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
v0.6.13
Ollama Version (if applicable)
No response
Operating System
centos7.9
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Export a PDF without garbled text
Actual Behavior
When I enable the 'Styled PDF Export' feature, the exported PDF of the conversation becomes garbled.
Chat history
exported PDF
chat-汽车对比 🚗 长安 vs MG.pdf
How can I fix the garbled text issue?
Steps to Reproduce
None
Logs & Screenshots
None
Additional Information
No response
@rgaricano commented on GitHub (Jun 6, 2025):
To fix stylized font use (not stylized create pdf with "photo" chat images) it's neccessary refact the function ( similar as is done in backend/open_webui/utils/pdf_generator.py)
It need fonts be added to jspdf object (ref: https://github.com/parallax/jsPDF?tab=readme-ov-file#use-of-unicode-characters--utf-8 ), but i'm afraid that jspdf don't have any method to "fallbackfont" (as fpdf2 does), i don't know if only adding fonts could be solved.
A possible solution is keep jspdf function for stylized pdf & for not stylized redirect to https://github.com/open-webui/open-webui/blob/53764fe64884da147359e54ed6d9607fe57f1600/backend/open_webui/routers/utils.py#L91 (/pdf endpoint that route to pdf_generator.py )