ragflow/web/src/components
PentaFDevs f9510edbbc
Feature/docs generator (#11858)
### Type of change

- [x] New Feature (non-breaking change which adds functionality)


### What problem does this PR solve?

This PR introduces a new Docs Generator agent component for producing
downloadable PDF, DOCX, or TXT files from Markdown content generated
within a RAGFlow workflow.

### **Key Features**

**Backend**

- New component: DocsGenerator (agent/component/docs_generator.py)
- 
- Markdown → PDF/DOCX/TXT conversion
- 
- Supports tables, lists, code blocks, headings, and rich formatting
- 
- Configurable document style (fonts, margins, colors, page size,
orientation)
- 
- Optional header logo and footer with page numbers/timestamps
- 

**Frontend**

- New configuration UI for the Docs Generator
- 
- Download button integrated into the chat interface
- 
- Output wired to the Message component
- 
- Full i18n support

**Documentation**

Added component guide:
docs/guides/agent/agent_component_reference/docs_generator.md

**Usage**

Add the Docs Generator to a workflow, connect Markdown output from an
upstream component, configure metadata/style, and feed its output into
the Message component. Users will see a document download button
directly in the chat.

**Contributor Note**

We have been following RAGFlow since more than a year and half now and
have worked extensively on personalizing the framework and integrating
it into several of our internal systems. Over the past year and a half,
we have built multiple platforms that rely on RAGFlow as a core
component, which has given us a strong appreciation for how flexible and
powerful the project is.

We also previously contributed the full Italian translation, and we were
glad to see it accepted. This new Docs Generator component was created
for our own production needs, and we believe that it may be useful for
many others in the community as well.

We want to sincerely thank the entire RAGFlow team for the remarkable
work you have done and continue to do. If there are opportunities to
contribute further, we would be glad to help whenever we have time
available. It would be a pleasure to support the project in any way we
can.

If appropriate, we would be glad to be listed among the project’s
contributors, but in any case we look forward to continuing to support
and contribute to the project.

PentaFrame Development Team

---------

Co-authored-by: PentaFrame <info@pentaframe.it>
Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
2025-12-12 14:59:43 +08:00
..
api-service Fix: Changed 'HightLightMarkdown' to 'HighLightMarkdown' (#11803) 2025-12-08 11:11:48 +08:00
back-button Fix: Modify the style of the user center #10703 (#11419) 2025-11-21 09:33:50 +08:00
canvas Feat: Modify the background color of the canvas #9869 (#10507) 2025-10-13 11:10:54 +08:00
card-singleline-container Fix: Home and team page style adjustment, and some bug fixes #10703 (#10805) 2025-10-27 15:15:12 +08:00
chunk-method-dialog Feat: Delete useless request hooks. #10427 (#11659) 2025-12-02 17:24:29 +08:00
data-pipeline-select Fix: Switch the default theme from light mode to dark mode and improve some styles #9869 (#10552) 2025-10-14 19:06:50 +08:00
document-preview Fix:csv parse in Table (#11870) 2025-12-10 16:44:06 +08:00
edit-tag Fix: Modify the style of the user center #10703 (#11419) 2025-11-21 09:33:50 +08:00
embed-dialog Fix: Changed 'HightLightMarkdown' to 'HighLightMarkdown' (#11803) 2025-12-08 11:11:48 +08:00
empty Features: Memory page rendering and other bug fixes (#11784) 2025-12-08 10:17:56 +08:00
file-icon Feat: Delete useless request hooks. #10427 (#11659) 2025-12-02 17:24:29 +08:00
file-upload-dialog Fixes: Fixed some bugs #10703 (#11180) 2025-11-12 09:36:48 +08:00
highlight-markdown Fix: Changed 'HightLightMarkdown' to 'HighLightMarkdown' (#11803) 2025-12-08 11:11:48 +08:00
hooks Fix: Changed 'HightLightMarkdown' to 'HighLightMarkdown' (#11803) 2025-12-08 11:11:48 +08:00
image
indented-tree Feat: Delete useless request hooks. #10427 (#11659) 2025-12-02 17:24:29 +08:00
json-edit Fix errors (#11804) 2025-12-08 12:21:18 +08:00
jsonjoy-builder Feat: Add configuration for webhook to the begin node. #10427 (#11875) 2025-12-10 19:13:57 +08:00
line-chart
list-filter-bar Fix: bug fixes and icon replacement #10703 (#10814) 2025-10-27 19:02:18 +08:00
llm-select Feat: Delete useless request hooks. #10427 (#11659) 2025-12-02 17:24:29 +08:00
llm-setting-items Features: Memory page rendering and other bug fixes (#11784) 2025-12-08 10:17:56 +08:00
markdown-content Feat: Display the ID of the code image in the dialog. #10427 (#11746) 2025-12-04 18:49:55 +08:00
message-input Feature:Add voice dialogue functionality to the agent application (#11668) 2025-12-02 19:39:43 +08:00
message-item Feature/docs generator (#11858) 2025-12-12 14:59:43 +08:00
metadata-filter Add DeepseekV3.2 of Tongyi-Qianwen and remove unused code (#11898) 2025-12-11 13:55:01 +08:00
next-markdown-content Feat: Display the ID of the code image in the dialog. #10427 (#11746) 2025-12-04 18:49:55 +08:00
next-message-item Feature/docs generator (#11858) 2025-12-12 14:59:43 +08:00
originui Fix: Refactoring and enhancing the functionality of the delete confirmation dialog component #10703 (#11542) 2025-11-26 19:49:21 +08:00
parse-configuration Feat: Replace antd with shadcn and delete the template node. #10427 (#11693) 2025-12-03 14:37:58 +08:00
pdf-download-button Feature/docs generator (#11858) 2025-12-12 14:59:43 +08:00
pdf-drawer Feat: Replace antd in the chat message with shadcn. #10427 (#11590) 2025-11-28 17:15:01 +08:00
pdf-previewer Feat: Delete useless request hooks. #10427 (#11659) 2025-12-02 17:24:29 +08:00
prompt-editor Feat: The query variables of the subsequent operators can reference the structured variables defined in the agent operator. #10866 (#10902) 2025-10-30 19:06:44 +08:00
rename-dialog Feat: Delete useless knowledge base, chat, and search files. #10427 (#11568) 2025-11-27 17:54:27 +08:00
similarity-slider Feat: Replace antd with shadcn and delete the template node. #10427 (#11693) 2025-12-03 14:37:58 +08:00
ui Feature:Add voice dialogue functionality to the agent application (#11668) 2025-12-02 19:39:43 +08:00
xyflow Feat: Adjust the style of the canvas node #10703 (#10795) 2025-10-27 10:36:36 +08:00
auto-keywords-form-field.tsx
avatar-upload.tsx Fix: Profile picture cropping supported #10703 (#11221) 2025-11-13 09:50:10 +08:00
bool-segmented.tsx Feat: Add loop operator node. #10427 (#11449) 2025-11-27 15:55:46 +08:00
bulk-operate-bar.tsx Fix: Refactoring and enhancing the functionality of the delete confirmation dialog component #10703 (#11542) 2025-11-26 19:49:21 +08:00
card-container.tsx Feat: Change the style of all cards according to the design #10703 (#10704) 2025-10-21 20:08:55 +08:00
collapse.tsx Feat: Modify the style of the agent operator form #10703 (#10821) 2025-10-27 19:37:52 +08:00
confirm-delete-dialog.tsx Feature: Memory interface integration testing (#11833) 2025-12-09 14:52:58 +08:00
copy-to-clipboard.tsx
cross-language-form-field.tsx Feat: Use data pipeline to visualize the parsing configuration of the knowledge base (#10423) 2025-10-09 12:36:19 +08:00
dataset-configuration-container.tsx
delimiter-form-field.tsx Fix: Update the parsing editor to support dynamic field names and optimize UI styles #9869 (#10535) 2025-10-14 13:31:48 +08:00
dynamic-form.tsx Feature: Memory interface integration testing (#11833) 2025-12-09 14:52:58 +08:00
editable-cell.tsx
embed-container.tsx Feat: Displays the embedded page of the chat module #3221 (#9532) 2025-08-18 18:02:13 +08:00
entity-types-form-field.tsx Feat: Use data pipeline to visualize the parsing configuration of the knowledge base (#10423) 2025-10-09 12:36:19 +08:00
excel-to-html-form-field.tsx Fix: Added table of contents extraction functionality and optimized form item layout #9869 (#10492) 2025-10-11 18:45:55 +08:00
feedback-dialog.tsx Feat: Replace antd with shadcn and delete the template node. #10427 (#11693) 2025-12-03 14:37:58 +08:00
file-status-badge.tsx Feature: Added data source functionality #10703 (#11046) 2025-11-06 11:53:46 +08:00
file-upload.tsx
file-uploader.tsx Fix: Refactoring and enhancing the functionality of the delete confirmation dialog component #10703 (#11542) 2025-11-26 19:49:21 +08:00
floating-chat-widget-markdown.less Fix: floating widget match style with original one (#10317) 2025-09-28 13:58:10 +08:00
floating-chat-widget-markdown.tsx Feat: Delete useless request hooks. #10427 (#11659) 2025-12-02 17:24:29 +08:00
floating-chat-widget.tsx Fix: Error 102 "Can't find dialog by ID" when embedding agent with from=agent** #11552 (#11594) 2025-11-28 19:05:43 +08:00
form-container.tsx
home-card.tsx Feat: Add data operation node #10427 (#10985) 2025-11-04 13:48:44 +08:00
icon-font.tsx Feat: The key for the begin operator can only contain alphanumeric characters and underscores. #10427 (#11377) 2025-11-19 16:16:57 +08:00
key-input.tsx Feat: The key for the begin operator can only contain alphanumeric characters and underscores. #10427 (#11377) 2025-11-19 16:16:57 +08:00
knowledge-base-item.tsx Feat: Delete useless request hooks. #10427 (#11659) 2025-12-02 17:24:29 +08:00
large-model-form-field.tsx Feat: Modify the style of the agent operator form #10703 (#10821) 2025-10-27 19:37:52 +08:00
layout-recognize-form-field.tsx Feat: Add mineru as a model manufacturer to the system. #10621 (#11903) 2025-12-11 17:37:10 +08:00
logical-operator.tsx Feat: Add loop operator node. #10427 (#11449) 2025-11-27 15:55:46 +08:00
max-token-number-from-field.tsx Fix: Added table of contents extraction functionality and optimized form item layout #9869 (#10492) 2025-10-11 18:45:55 +08:00
message-history-window-size-item.tsx Feat: Replace antd with shadcn and delete the template node. #10427 (#11693) 2025-12-03 14:37:58 +08:00
modal-manager.tsx
more-button.tsx
new-document-link.tsx
page-header.tsx Feat: Show multiple chat boxes #3221 (#9443) 2025-08-13 15:59:51 +08:00
page-rank-form-field.tsx
prompt-dialog.tsx Fix: Changed 'HightLightMarkdown' to 'HighLightMarkdown' (#11803) 2025-12-08 11:11:48 +08:00
ragflow-avatar.tsx Fix: Fixed an issue that caused the page to crash when a knowledge base variable was selected. #10427 (#11197) 2025-11-12 12:30:08 +08:00
ragflow-form.tsx Feature: Memory interface integration testing (#11833) 2025-12-09 14:52:58 +08:00
rerank.tsx Feat: Replace antd with shadcn and delete the template node. #10427 (#11693) 2025-12-03 14:37:58 +08:00
shared-badge.tsx Feat: Delete useless request hooks. #10427 (#11659) 2025-12-02 17:24:29 +08:00
skeleton-card.tsx Fix: Home and team page style adjustment, and some bug fixes #10703 (#10805) 2025-10-27 15:15:12 +08:00
slider-input-form-field.tsx Fix: Modify the style of your personal center #10703 (#11487) 2025-11-25 11:17:39 +08:00
spotlight.tsx Adjust styles to match the design system (#11118) 2025-11-10 10:05:19 +08:00
svg-icon.tsx Feat: Add mineru as a model manufacturer to the system. #10621 (#11903) 2025-12-11 17:37:10 +08:00
switch-fom-field.tsx
table-skeleton.tsx Fix(i18n): Added new translations #3221 (#9727) 2025-08-26 17:57:53 +08:00
tavily-form-field.tsx Feat: Show multiple chat boxes #3221 (#9443) 2025-08-13 15:59:51 +08:00
theme-provider.tsx Feature: embedded chat theme (#11581) 2025-12-01 09:49:28 +08:00
theme-toggle.tsx Fix: Optimize the style of the personal center sidebar component #9869 (#10723) 2025-10-22 16:55:16 +08:00
toc-enhance-form-field.tsx Feat: Added toc enhance field to chat and retrieval operator configuration #10436 (#10470) 2025-10-10 18:35:43 +08:00
top-n-item.tsx Feat: Replace antd with shadcn and delete the template node. #10427 (#11693) 2025-12-03 14:37:58 +08:00
use-knowledge-graph-item.tsx Feat: Replace antd with shadcn and delete the template node. #10427 (#11693) 2025-12-03 14:37:58 +08:00