Saw this in your AI chat?
file_gen:generate_pdf — generate the PDF your AI couldn't
file_gen:generate_pdf is the internal tool an AI assistant calls to make a PDF. When you see the name instead of a download link, the file step failed. Paste the text below and get your PDF now. Free, no sign-up, nothing leaves your browser.
What is file_gen:generate_pdf?
file_gen:generate_pdf is a tool name, not an error code from your computer. AI assistants that can create files work by calling small internal tools. The part before the colon, file_gen, is the file-generation toolkit. The part after it, generate_pdf, is the action that turns the answer into a PDF file.
Normally you never see this name. The assistant calls file_gen:generate_pdf in the background and you get a download link. You only see the raw name when the call is printed into the chat as text or fails halfway. That is why many people search for file_gen:generate_pdf right after asking an AI for a PDF.
Good news: the content the AI wrote is usually fine. Only the last step, building the file, did not happen. You can finish that step yourself in a few seconds with the generator above.
Why file_gen:generate_pdf shows up instead of a PDF
- The file tool is not enabled in that chat. Some models, modes or plans cannot create files. The assistant tries to call file_gen:generate_pdf anyway and the call is shown as text.
- The request timed out. Long documents, many images or big tables can make PDF generation exceed the tool's time limit.
- The model wrote the tool call instead of running it. Smaller or faster models sometimes print a function name like file_gen:generate_pdf rather than executing it.
- Temporary service issue. File tools fail more often when the AI service is busy.
None of these mean your account or device has a problem. file_gen:generate_pdf is not malware and nothing was installed.
How to fix file_gen:generate_pdf and get your PDF
- Ask for the content as Markdown. Reply to the AI:
Please give me the full document as Markdown in the chat, not as a file. - Copy the answer. Use the copy button under the AI's reply so headings, lists and tables keep their formatting.
- Paste it into the generator above and check the live preview.
- Click Download PDF and choose Save as PDF in the dialog. Done.
Prefer to retry inside the AI? Start a new chat, pick a model that supports file creation, keep the document shorter, and ask again. If you keep seeing file_gen:generate_pdf, the generator here is the fastest workaround.
Fixes for each AI assistant
ChatGPT
Make sure you are in a model that can create files, then ask again in a new chat. If the PDF still fails, ask for Markdown and paste it here. Full ChatGPT guide
Claude
Check that file creation is turned on in settings. Otherwise ask Claude for the document as Markdown and convert it here.
Gemini
Ask Gemini to export to Google Docs, then use File, Download, PDF. Or copy the answer and convert it here.
AI agents and APIs
If your own agent logs file_gen:generate_pdf, the PDF tool call failed. Log the tool error, check timeouts and file size limits, and return the Markdown as a fallback.
file_gen:generate_pdf FAQ
Is file_gen:generate_pdf safe?
Yes. It is only the name of a tool used by the AI service. It cannot run anything on your computer.
Does this site send my text anywhere?
No. The generator runs fully in your browser. Your text is not uploaded or stored.
Can I convert tables and code blocks?
Yes. Markdown tables, code blocks, lists, links and headings are all kept in the PDF.
What is the difference between file_gen:generate_pdf and other file tools?
AI assistants often have a family of file tools, for example ones that make Word, Excel or PowerPoint files. generate_pdf is the one that makes PDFs. The same workaround works for all of them: get the content as text, then convert it.
Is this site official?
No. FileGen PDF is an independent free tool. It is not affiliated with OpenAI, Anthropic, Google or any AI company.