[PR #5283] [MERGED] Add PDF document generation with markdown formatting #5392

Closed
opened 2026-06-05 15:21:13 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/5283
Author: @timothycarambat
Created: 3/27/2026
Status: Merged
Merged: 3/27/2026
Merged by: @timothycarambat

Base: file-creationHead: pdf-creation


📝 Commits (1)

  • 725b273 Add PDF document generation with markdown formatting

📊 Changes

10 files changed (+354 additions, -43 deletions)

View changed files

📝 frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/HistoricalOutputs/index.jsx (+6 -16)
📝 frontend/src/locales/en/common.js (+6 -0)
📝 frontend/src/pages/Admin/Agents/CreateFileSkillPanel/index.jsx (+25 -1)
📝 server/package.json (+2 -0)
📝 server/utils/agents/aibitat/plugins/create-files/index.js (+2 -1)
📝 server/utils/agents/aibitat/plugins/create-files/lib.js (+27 -0)
server/utils/agents/aibitat/plugins/create-files/pdf/create-pdf-file.js (+138 -0)
server/utils/agents/aibitat/plugins/create-files/pdf/utils.js (+70 -0)
📝 server/utils/agents/aibitat/plugins/create-files/pptx/utils.js (+6 -24)
📝 server/yarn.lock (+72 -1)

📄 Description

Pull Request Type

  • feat (New feature)
  • 🐛 fix (Bug fix)
  • ♻️ refactor (Code refactoring without changing behavior)
  • 💄 style (UI style changes)
  • 🔨 chore (Build, CI, maintenance)
  • 📝 docs (Documentation updates)

Relevant Issues

connect #5280

Description

  • Adds support for PDF document generation
  • Supports tons of markdown styling and even image rendering
  • includes small watermark

Visuals (if applicable)

https://github.com/user-attachments/assets/b7a3af28-c2ba-4f81-85db-3b556985a14e

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated (if applicable)
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/5283 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 3/27/2026 **Status:** ✅ Merged **Merged:** 3/27/2026 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `file-creation` ← **Head:** `pdf-creation` --- ### 📝 Commits (1) - [`725b273`](https://github.com/Mintplex-Labs/anything-llm/commit/725b273913e4c12a96192f95119942cabbe25de0) Add PDF document generation with markdown formatting ### 📊 Changes **10 files changed** (+354 additions, -43 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/HistoricalOutputs/index.jsx` (+6 -16) 📝 `frontend/src/locales/en/common.js` (+6 -0) 📝 `frontend/src/pages/Admin/Agents/CreateFileSkillPanel/index.jsx` (+25 -1) 📝 `server/package.json` (+2 -0) 📝 `server/utils/agents/aibitat/plugins/create-files/index.js` (+2 -1) 📝 `server/utils/agents/aibitat/plugins/create-files/lib.js` (+27 -0) ➕ `server/utils/agents/aibitat/plugins/create-files/pdf/create-pdf-file.js` (+138 -0) ➕ `server/utils/agents/aibitat/plugins/create-files/pdf/utils.js` (+70 -0) 📝 `server/utils/agents/aibitat/plugins/create-files/pptx/utils.js` (+6 -24) 📝 `server/yarn.lock` (+72 -1) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat (New feature) - [ ] 🐛 fix (Bug fix) - [ ] ♻️ refactor (Code refactoring without changing behavior) - [ ] 💄 style (UI style changes) - [ ] 🔨 chore (Build, CI, maintenance) - [ ] 📝 docs (Documentation updates) ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> connect #5280 ### Description - Adds support for PDF document generation - Supports tons of markdown styling and even image rendering - includes small watermark ### Visuals (if applicable) https://github.com/user-attachments/assets/b7a3af28-c2ba-4f81-85db-3b556985a14e <!-- Add screenshots or screen recordings to demonstrate the changes, especially for UI updates. --> ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [ ] I ran `yarn lint` from the root of the repo & committed changes - [ ] Relevant documentation has been updated (if applicable) - [ ] I have tested my code functionality - [ ] Docker build succeeds locally --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 15:21:13 -04:00
yindo closed this issue 2026-06-05 15:21:13 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5392