Deepseek AI Chat To PDF is a browser extension designed to seamlessly convert your AI chat conversations from the Deepseek AI platform into well-formatted PDF documents. Whether you need to archive, share, or reference your chats, this tool simplifies the process with support for mathematical expressions (via LaTeX and KaTeX) and clean, professional output. Built with modern web technologies, it’s lightweight, user-friendly, and highly functional.
- Chat-to-PDF Conversion: Transform your Deepseek AI chat history into a downloadable PDF with a single click.
- LaTeX Support: Render mathematical expressions accurately using KaTeX, ideal for technical or academic chats.
- SVG Graphics: Incorporate vector graphics and diagrams with SVG.js for enhanced visual output.
- User-Friendly Interface: A fixed "Download Chat as PDF" button integrates seamlessly into the chat page.
- Progress Feedback: Real-time updates during PDF generation (e.g., "Processing 50%").
- Custom PDF Formatting: Includes labeled "User" and "Assistant" messages, page numbers, and 1-inch margins.
- Browser Compatibility: Works as an extension for Chrome, Firefox, and other supported browsers.
Deepseek AI Chat To PDF is a browser extension that can be installed in developer mode. Follow the instructions below based on your browser.
- Clone or download the repository:
git clone https://github.com/KidusB9/DeepSeek-to-PDF-Chrome-and-Firefox-Extension-for-Easy-Chat-to-PDF-Conversion.git
- Open Chrome and go to
chrome://extensions/
. - Enable Developer Mode (toggle in the top-right corner).
- Click Load Unpacked and select the folder containing the cloned repository.
- The extension will appear in your extensions list and be ready to use.
- Clone or download the repository:
git clone https://github.com/KidusB9/Deepseek-AI-Chat-To-PDF.git
- Open Firefox and navigate to
about:debugging#/runtime/this-firefox
. - Click Load Temporary Add-on and select the
manifest.json
file from the repository folder. - The extension will be installed temporarily. (For permanent installation, package it as an XPI file.)
After installation, using the extension is straightforward:
- Open Deepseek AI Chat: Visit the Deepseek AI chat platform in your browser.
- Locate the Button: A "Download Chat as PDF" button will appear as a fixed element at the bottom-right corner of the page.
- Generate the PDF:
- Click the "Download Chat as PDF" button.
- The extension will process the chat content, render mathematical expressions (e.g.,
$x^2 + 1$
), and create a PDF. - Progress updates (e.g., "Processing 75%") will display on the button.
- Download: Once complete, the PDF will download automatically with a filename like
chat-history-YYYY-MM-DD.pdf
.
- Ensure the chat content is fully loaded and visible on the page before generating the PDF.
- For chats with heavy mathematical content, rendering may take slightly longer due to KaTeX processing.
- Check the browser console (
Ctrl+Shift+J
orCmd+Option+J
) if you encounter issues.
The project relies on the following external libraries, bundled within the repository:
- html2canvas: Captures HTML elements as canvas images for PDF inclusion.
- html2pdf.bundle.min.js: Converts HTML content to PDF format.
- jsPDF: Core library for generating PDF documents.
- KaTeX: Renders LaTeX mathematical expressions (
katex.min.js
andkatex.min.css
). - SVG.js: Handles SVG graphics and diagrams (
svgjs
andtex-svgjs
).
These dependencies enable the extension’s core functionality and are included as minified files.
We welcome contributions to enhance Deepseek AI Chat To PDF! To get involved:
- Fork the Repository: Create your own copy of the project.
- Create a Branch: Work on your changes in a new branch (e.g.,
feature/add-dark-mode
). - Submit a Pull Request: Provide a clear description of your changes when submitting.
For bug reports or feature requests, please open an issue on the GitHub repository. Ensure your code is well-documented and adheres to best practices.
This project is licensed under the MIT License. Feel free to use, modify, and distribute it according to the license terms.