# AI Document Maker: full details URL: https://aidoc.wondermayank.in/ Made by: wondermayank (https://wondermayank.in), part of the ThunderStudy project. Design help: Shruti. Last updated: 2026-11-26 ## What it is AI PDF Maker is a free web tool for students and creators. A person pastes or uploads plain text (class notes, revision sheets, guides) and gets a clean, colourful PDF that looks like a professional study sheet: a title banner, section cards, bullet lists, tip boxes and code boxes. ## Outputs - PDF: styled A4 or Letter pages, with the person's name at the bottom left and a page number style at the bottom right. - Word (.docx): real headings, bullets, tables and a footer with live page numbers. - Slides (.pptx): a title slide, one slide per section, tables on their own slide. - Excel (.xlsx): a Notes sheet (Section, Type, Text) plus one sheet per table. Cells starting with = become formulas. - Audio: the document is read aloud with the voices on the person's device, with a speed control. Hindi needs a Hindi voice on the device. MP3 download is not available yet. - Maths: write $x^2$ (inline) or $$x^2$$ (display). KaTeX shows it in the PDF preview; Word, Slides and Excel keep it as text. - Tables: write them as | a | b | rows, or upload a .csv file. ## The most important rule The AI never writes, rewrites, shortens or removes any text. The browser sends the lines to an AI model, and the model returns only: 1. a colour theme (primary, accent, soft background), and 2. a role for each line (title, sub, h1, h2, bullet, text, note, code). The page then builds the PDF from the person's original text. Before the Download button unlocks, the page compares every line of the preview with the original and shows "Every word kept". If anything differs, download stays locked. ## Write with AI (optional) In the "Write with AI" tab the person types a topic, picks a length (about 1, 2 or 3 pages) and a language (English, Hindi or Hinglish). An AI model writes a first draft into the text box. The person can edit every word, and should check facts before studying from it. After that, the design step keeps every word in the box exactly. ## How to use 1. Open https://aidoc.wondermayank.in/ 2. Paste text, or switch to "Upload file" and choose a .txt, .md or .csv file. 3. Choose a style (see options) and press "Design my PDF". 4. Check the preview, then press "Download PDF". ## Tips for guiding the design (optional) - "# Title" marks the main title, "## Heading" a section card, "### Heading" a small heading. - "- item" or "* item" makes a bullet. - "> text" makes a highlighted tip box. These marks are only hints and are removed from the displayed text; the words themselves stay the same. ## Options - Colour: Auto (AI picks), Thunder Blue, Sunset, Forest, Purple, Rose, Slate. - Layout: Cards (like ThunderStudy sheets), Clean headings, Compact. - Quick templates: Study notes, Revision sheet, Formal report, Cheat sheet, Fun notes. - Font: Modern (Inter), Hindi + English (Noto Sans), Elegant (Noto Serif), Book (Georgia), Code (mono). - AI provider: Auto, Groq (Llama 3.3 70B), OrcaRouter, or OpenRouter free models (Llama 3.3 70B, Gemma 3 27B, Mistral Small 3.1). If one fails, the next is tried automatically. - Page size: A4 or Letter. Direction: portrait or landscape. - Text size slider (11 to 19 px). - Toggles: let AI design, title banner, page numbers. - Style wish for the AI (free text, for example "light blue school notes"). - Your name (printed at the bottom left of every page). - Page number style (bottom right): "Page 1 of 5", "1 / 5", "Page 1", "- 1 -" or "1". ## Limits - Up to 400 non-empty lines and 500 KB for uploaded files. - If the AI is busy or unavailable, the tool falls back to a built-in smart design, so a PDF can still be made. ## Privacy - The PDF is generated in the user's browser. It is not uploaded or stored by this site. - When "Let AI design it" is on, the text lines (each cut to its first 80 characters) and the optional style wish are sent through a Cloudflare Pages Function to OpenRouter, which runs a free AI model. The site does not store them. The AI provider may have its own logging policy, so people should not paste secrets or private data. - No account, no cookies for tracking. ## Technical summary - Hosting: Cloudflare Pages (static page in /public plus a Pages Function at /api/design). - PDF engine: html2pdf.js (runs in the browser). - AI: Groq, OpenRouter and OrcaRouter through one helper with fallback. Keys are Pages secrets (GROQ_API_KEY, OPENROUTER_API_KEY, ORCAROUTER_API_KEY). - Word, Slides and Excel files are built in the browser with docx, PptxGenJS and ExcelJS, loaded from jsDelivr when first needed. - Design guide and rules: https://aidoc.wondermayank.in/design.md - Design system: ThunderStudy clay UI. - /api/design accepts POST JSON {lines: string[], hint?: string, model?: string} from the same site only and returns {theme, roles}. - /api/write accepts POST JSON {topic, length?, lang?, model?} from the same site only and returns {text}. These are not public APIs. - Drafts and settings are autosaved in the browser's localStorage on the user's device only. ## Self-hosting The source can be hosted on any Cloudflare Pages project. See the README in the project folder: connect the folder to Cloudflare Pages, set output directory "public", add the secret OPENROUTER_API_KEY, and optionally add a custom domain. ## FAQ Q: Does the AI change my text? No. It only picks styling, and the page verifies that all text is kept. Q: Is it free? Yes. Q: Can the AI write the notes for me? Yes, in the optional Write with AI tab. The person edits the draft before designing. Q: Which AI is used? Groq, OrcaRouter and OpenRouter free models, selectable in the options or chosen automatically. Q: Can I get Word, PowerPoint or Excel files? Yes, plus PDF and audio. Q: Does it support maths? Yes, with $...$ (KaTeX). Q: Does it work on phones? Yes, the page is responsive and the PDF downloads in the browser. Q: Can I use my own language? Yes for the text. The name in the footer is drawn as an image so any language works. Q: Who made it? wondermayank, with design help from Shruti.