<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Strive Math</title>
    <description>The latest articles on DEV Community by Strive Math (@strive_math_34d58d294d220).</description>
    <link>https://dev.to/strive_math_34d58d294d220</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3648162%2F724b2570-1d44-4bbc-8756-c9b41e3ea22e.png</url>
      <title>DEV Community: Strive Math</title>
      <link>https://dev.to/strive_math_34d58d294d220</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/strive_math_34d58d294d220"/>
    <language>en</language>
    <item>
      <title>How We Built a PDF Generator Inside ChatGPT to Solve a Real Classroom Problem</title>
      <dc:creator>Strive Math</dc:creator>
      <pubDate>Sat, 06 Dec 2025 09:27:08 +0000</pubDate>
      <link>https://dev.to/strive_math_34d58d294d220/how-we-built-a-pdf-generator-inside-chatgpt-to-solve-a-real-classroom-problem-41f6</link>
      <guid>https://dev.to/strive_math_34d58d294d220/how-we-built-a-pdf-generator-inside-chatgpt-to-solve-a-real-classroom-problem-41f6</guid>
      <description>&lt;p&gt;&lt;strong&gt;From messy worksheets to instant PDFs - a story of frustration, iteration, and a surprisingly powerful MCP server.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When you run a live education company, your users don’t complain politely - they feel problems &lt;strong&gt;immediately&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;For us at Strive, that moment came during a regular parent-teacher feedback call.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“The classes are great… but homework is inconsistent. Sometimes it comes as screenshots, sometimes as Google Docs, sometimes as photos.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That single comment exposed a pain we had quietly accepted for too long:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;creating clean, printable, structured worksheets was a massive operational bottleneck.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Our teachers were:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Writing questions in chat&lt;/li&gt;
&lt;li&gt;Copy-pasting into Google Docs&lt;/li&gt;
&lt;li&gt;Formatting equations manually, or trying to get ChatGPT to do it, but being unsuccessful&lt;/li&gt;
&lt;li&gt;Exporting to PDF&lt;/li&gt;
&lt;li&gt;Then uploading and sending files one by one&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It worked - but it was painfully inefficient.&lt;/p&gt;

&lt;p&gt;And with hundreds of classes a week, the friction compounded fast.&lt;/p&gt;

&lt;p&gt;So we asked a simple question:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;What if ChatGPT could generate a ready-to-send PDF directly?&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That question turned into the &lt;strong&gt;&lt;a href="https://www.strivemath.com/pdf" rel="noopener noreferrer"&gt;PDF Generator inside ChatGPT&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This is the story of how we built it - what broke, what worked, and what surprised us.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Real Problem: Not AI - Operations
&lt;/h2&gt;

&lt;p&gt;The technical capability already existed:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;LaTeX could create beautiful worksheets.&lt;/li&gt;
&lt;li&gt;PDF generation was trivial on a server.&lt;/li&gt;
&lt;li&gt;ChatGPT was already generating great questions.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The true problem was &lt;strong&gt;workflow friction&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Teachers don’t want to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Learn LaTeX&lt;/li&gt;
&lt;li&gt;Manage folders&lt;/li&gt;
&lt;li&gt;Export files manually&lt;/li&gt;
&lt;li&gt;Or debug formatting issues at 9pm before a class&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;They wanted:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One prompt&lt;/li&gt;
&lt;li&gt;One click&lt;/li&gt;
&lt;li&gt;One downloadable PDF&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the product goal became brutally simple:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Type a prompt → Get a formatted worksheet as a PDF.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;No tools. No exporting. No formatting.&lt;/p&gt;

&lt;p&gt;Just teaching.&lt;/p&gt;




&lt;h2&gt;
  
  
  The First Naive Build (That Failed Spectacularly)
&lt;/h2&gt;

&lt;p&gt;Our first internal prototype was… optimistic.&lt;/p&gt;

&lt;p&gt;We tried:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Generating LaTeX via ChatGPT&lt;/li&gt;
&lt;li&gt;Copy-pasting into a LaTeX compiler&lt;/li&gt;
&lt;li&gt;Downloading the resulting PDF&lt;/li&gt;
&lt;li&gt;Sending it to parents manually&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It worked technically.&lt;/p&gt;

&lt;p&gt;But operationally it was &lt;strong&gt;too fragile&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One missing bracket broke the file&lt;/li&gt;
&lt;li&gt;Teachers didn’t understand why PDFs failed&lt;/li&gt;
&lt;li&gt;Debugging LaTeX became a full-time job&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We had simply moved the pain — not eliminated it.&lt;/p&gt;

&lt;p&gt;That’s when our engineer said:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“If teachers are using ChatGPT anyway… why don’t we put the PDF engine inside ChatGPT?”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;That idea changed everything.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Breakthrough: The MCP Server + Custom ChatGPT App
&lt;/h2&gt;

&lt;p&gt;Instead of building a separate website, we used:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A &lt;strong&gt;custom MCP server&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;A &lt;strong&gt;ChatGPT App via Developer Mode&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;A LaTeX-to-PDF rendering pipeline&lt;/li&gt;
&lt;li&gt;Auto-return of the generated file&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now the flow became:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Teacher types:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Create a 10-question grade 6 algebra worksheet with answers.”&lt;/p&gt;
&lt;/blockquote&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;ChatGPT sends structured LaTeX to our MCP server&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Server compiles the PDF&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;PDF is returned instantly inside chat&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;No copy-pasting.&lt;/p&gt;

&lt;p&gt;No broken exports.&lt;/p&gt;

&lt;p&gt;No formatting chaos.&lt;/p&gt;

&lt;p&gt;Just &lt;strong&gt;prompt → PDF&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Went Wrong (So Much Went Wrong)
&lt;/h2&gt;

&lt;p&gt;Like any real build, this wasn’t smooth:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. LaTeX Failures at Scale
&lt;/h3&gt;

&lt;p&gt;Early versions failed silently when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Questions were too long&lt;/li&gt;
&lt;li&gt;Special characters weren’t escaped&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We had to build:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Auto-sanitization&lt;/li&gt;
&lt;li&gt;Fallback templates&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Server Cold Starts
&lt;/h3&gt;

&lt;p&gt;Our first version slept when unused.&lt;/p&gt;

&lt;p&gt;Teachers thought the tool was broken when the first request took 20 seconds.&lt;/p&gt;

&lt;p&gt;We fixed it with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Added a loading animation so teacher knew that it was thinking and still working&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Over-Engineering Early
&lt;/h3&gt;

&lt;p&gt;Our first iteration supported:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Multiple layouts&lt;/li&gt;
&lt;li&gt;Multiple paper sizes&lt;/li&gt;
&lt;li&gt;Custom branding&lt;/li&gt;
&lt;li&gt;Answer sheets, rubrics, solutions&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Teachers used… exactly one layout.&lt;/p&gt;

&lt;p&gt;We stripped it back to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Clean worksheet&lt;/li&gt;
&lt;li&gt;Optional answer key&lt;/li&gt;
&lt;li&gt;Instant download&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Lesson learned: Usability beats feature count every time.&lt;/p&gt;




&lt;h2&gt;
  
  
  What Finally Worked
&lt;/h2&gt;

&lt;p&gt;Once stabilized, three things made the product stick internally:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Teachers stopped asking for worksheets&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;They just generated them on demand.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Homework turnaround dropped from 20 minutes to 30 seconds&lt;/strong&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Consistency improved overnight&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Every worksheet now looked clean, printable, and professional.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;And the real validation moment?&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A parent asked, “Did you hire a new curriculum designer?”&lt;/p&gt;

&lt;p&gt;We didn’t. We just changed the workflow.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  What the PDF Generator Does Today
&lt;/h2&gt;

&lt;p&gt;Inside ChatGPT, our teachers can now:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Generate:

&lt;ul&gt;
&lt;li&gt;Math worksheets&lt;/li&gt;
&lt;li&gt;Coding exercises&lt;/li&gt;
&lt;li&gt;Practice tests&lt;/li&gt;
&lt;li&gt;Resumes&lt;/li&gt;
&lt;li&gt;Tables, graphs and diagrams&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;Automatically:

&lt;ul&gt;
&lt;li&gt;Professionally formats everything in LaTeX&lt;/li&gt;
&lt;li&gt;Compile into a clean PDF&lt;/li&gt;
&lt;li&gt;Download instantly&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;li&gt;Without:

&lt;ul&gt;
&lt;li&gt;Leaving ChatGPT&lt;/li&gt;
&lt;li&gt;Touching Google Docs&lt;/li&gt;
&lt;li&gt;Learning any technical syntax&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;A sample prompt:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;“Create a Grade 7 fractions worksheet with 10 questions and an answer key.”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Output:&lt;/p&gt;

&lt;p&gt;✅ Structured&lt;/p&gt;

&lt;p&gt;✅ Printable&lt;/p&gt;

&lt;p&gt;✅ Ready to send in under 5 seconds&lt;/p&gt;




&lt;h2&gt;
  
  
  What’s Next
&lt;/h2&gt;

&lt;p&gt;We’re now expanding the generator to support:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Auto-differentiated worksheets (same topic, different difficulty)&lt;/li&gt;
&lt;li&gt;Student-specific homework packs&lt;/li&gt;
&lt;li&gt;Bulk generation for entire classes&lt;/li&gt;
&lt;li&gt;And direct LMS uploads&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But the original goal remains unchanged:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Let teachers focus on teaching - not document creation.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Final Thought
&lt;/h2&gt;

&lt;p&gt;This tool didn’t start as a product idea.&lt;/p&gt;

&lt;p&gt;It started as a complaint from a tired teacher and a frustrated parent.&lt;/p&gt;

&lt;p&gt;And that’s how most good tools are born.&lt;/p&gt;

&lt;p&gt;Not from ambition -&lt;/p&gt;

&lt;p&gt;but from &lt;strong&gt;pain you feel often enough to finally fix properly&lt;/strong&gt;.&lt;/p&gt;

</description>
      <category>aitool</category>
      <category>chatgpt</category>
      <category>mcp</category>
      <category>latex</category>
    </item>
  </channel>
</rss>
