[GH-ISSUE #5652] [FEAT]: Enable PDF generation and download via API #5219

Closed
opened 2026-06-05 14:52:43 -04:00 by yindo · 4 comments
Owner

Originally created by @Stensan on GitHub (May 18, 2026).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5652

What would you like to see?

Bring the PDF generation and export capability to the API. Currently, this feature seems to be exclusive to the Desktop application's UI.

Use Case: I am looking to automate workflows where I interact with AnythingLLM via the API. Being able to trigger a PDF report generation based on a workspace conversation and receiving a download link (or the byte stream) would be incredibly helpful.

Originally created by @Stensan on GitHub (May 18, 2026). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/5652 ### What would you like to see? Bring the PDF generation and export capability to the API. Currently, this feature seems to be exclusive to the Desktop application's UI. Use Case: I am looking to automate workflows where I interact with AnythingLLM via the API. Being able to trigger a PDF report generation based on a workspace conversation and receiving a download link (or the byte stream) would be incredibly helpful.
yindo added the enhancementfeature request labels 2026-06-05 14:52:43 -04:00
yindo closed this issue 2026-06-05 14:52:43 -04:00
Author
Owner

@timothycarambat commented on GitHub (May 19, 2026):

Use Case: I am looking to automate workflows where I interact with AnythingLLM via the API. Being able to trigger a PDF report generation based on a workspace conversation and receiving a download link (or the byte stream) would be incredibly helpful.

When you say the PDF report generation do you mean the pdf-create agent skill that is a tool call the model can use? Or do you mean being able to like export the chat as a PDF over the API? I presume you mean being able to return the byte-stream of the generated document from a tool-call but I just want to be 100% sure on the ask.

<!-- gh-comment-id:4491045366 --> @timothycarambat commented on GitHub (May 19, 2026): > Use Case: I am looking to automate workflows where I interact with AnythingLLM via the API. Being able to trigger a PDF report generation based on a workspace conversation and receiving a download link (or the byte stream) would be incredibly helpful. When you say the PDF report generation do you mean the `pdf-create` agent skill that is a tool call the model can use? Or do you mean being able to like export the chat as a PDF over the API? I presume you mean being able to return the byte-stream of the generated document from a tool-call but I just want to be 100% sure on the ask.
Author
Owner

@ohromeo commented on GitHub (May 19, 2026):

Hi, i'd be looking for the same thing. I think what is meant is: "@agent can you scrape the website anythingllm.com and give me a summary of features AnythingLLM have, and create a PPTX presentation so i can share with the boss".. the file is created on the server, but at this time there is not way to obtain it via any of the API's. it is stored in the generated-files as eg: pptx-1f26e1d3-8fcf-4518-9ed6-d555b6f36f7f.pptx. running docker/linux version 1.12.1

<!-- gh-comment-id:4491150751 --> @ohromeo commented on GitHub (May 19, 2026): Hi, i'd be looking for the same thing. I think what is meant is: "@agent can you scrape the website anythingllm.com and give me a summary of features AnythingLLM have, and create a PPTX presentation so i can share with the boss".. the file is created on the server, but at this time there is not way to obtain it via any of the API's. it is stored in the generated-files as eg: pptx-1f26e1d3-8fcf-4518-9ed6-d555b6f36f7f.pptx. running docker/linux version 1.12.1
Author
Owner

@Stensan commented on GitHub (May 20, 2026):

Use Case: I am looking to automate workflows where I interact with AnythingLLM via the API. Being able to trigger a PDF report generation based on a workspace conversation and receiving a download link (or the byte stream) would be incredibly helpful.

When you say the PDF report generation do you mean the pdf-create agent skill that is a tool call the model can use? Or do you mean being able to like export the chat as a PDF over the API? I presume you mean being able to return the byte-stream of the generated document from a tool-call but I just want to be 100% sure on the ask.

Yes, you are correct. I mean the tool-call and want to download the PDF via byte-stream.

<!-- gh-comment-id:4498801923 --> @Stensan commented on GitHub (May 20, 2026): > > Use Case: I am looking to automate workflows where I interact with AnythingLLM via the API. Being able to trigger a PDF report generation based on a workspace conversation and receiving a download link (or the byte stream) would be incredibly helpful. > > When you say the PDF report generation do you mean the `pdf-create` agent skill that is a tool call the model can use? Or do you mean being able to like export the chat as a PDF over the API? I presume you mean being able to return the byte-stream of the generated document from a tool-call but I just want to be 100% sure on the ask. Yes, you are correct. I mean the tool-call and want to download the PDF via byte-stream.
Author
Owner

@timothycarambat commented on GitHub (May 20, 2026):

Great, then #5658 should be the solution!

<!-- gh-comment-id:4499560748 --> @timothycarambat commented on GitHub (May 20, 2026): Great, then #5658 should be the solution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5219