makesPDF
← Back to How to create a PDF

AI assistants (ChatGPT, Claude and MCP tools)

By Jason Galea · Part of the How to create a PDF benchmark

Takeaway: Asking ChatGPT or Claude for a PDF directly usually runs an ad-hoc ReportLab script in a sandbox (untagged, missing CJK and emoji). Giving the agent a real PDF tool via MCP or a skill file fixes both reliability and compliance.

Sample PDFSizePagesTaggedPDF/UA-1PDF/A-2aZürich / 東京 / 🚀Fig altTable tags
reportlab55 KB2nofail (12r / 251c)fail (10r / 285c)✓ ✗ ✗✗✗
browser-print114 KB2yesfail (5r / 13c)fail (4r / 2090c)✓ ✓ ✓✓✓
makespdf-markdown68 KB3yesPASSPASS✓ ✓ ✓✓✓

Checked with veraPDF 1.28.2 (r = failed rules, c = failed checks). Click any sample name to download the PDF, or test your own output in /validate (free, no sign-in) and inspect structure trees in /tags.

"Just ask ChatGPT or Claude to make me a PDF" is quickly becoming the first thing people try. The catch is that three completely different pipelines sit behind that sentence, and they produce very different files.

Sample note: The scorecard above shows the three structural proxies from our 26-sample benchmark (reportlab for a Python code sandbox, browser-print for printing an HTML artifact from Chrome, and makespdf-markdown for calling an MCP rendering tool). We also plan to capture one direct ChatGPT export and one direct Claude export with the exact prompt recorded.

The three ways an AI makes a PDF

1. Ask a chat model for a downloadable PDF (code sandbox)

When you ask ChatGPT (or a similar code-interpreter assistant) to create a PDF directly, the model writes a one-off Python script inside its sandbox, usually using ReportLab or fpdf2, executes it, and hands you a link to the file.

Forum threads (OpenAI community) show the output is often hit-and-miss visually (clipped tables, awkward spacing, broken line wraps), and structurally it inherits the reportlab row in the table above:

  • Untagged: 0 structure tags, no alt text, 251 failed PDF/UA-1 checks.
  • Font gaps: unembedded Helvetica, and CJK (東京) plus colour emoji (🚀) drop out unless the model happens to find and manually register a system CJK font inside the sandbox.
  • Not deterministic: ask the same prompt tomorrow and you get a different layout.

2. Generate an HTML artifact and print from the browser

Another common path is asking Claude or ChatGPT to build a formatted HTML page or artifact, then pressing Cmd+P / Ctrl+P → Save as PDF. That gives you the browser-print profile: nicer typography and a real Chrome tag tree, with working CJK and emoji, but still manual, failing 5 PDF/UA-1 rules, and no PDF/A.

3. Give the agent a deterministic PDF tool (MCP, CLI or skill file)

Instead of asking the LLM to improvise layout coordinates in Python or write a 1,500-token HTML print stylesheet on every turn, you give the agent a dedicated rendering tool via MCP or a skill file. The model emits Markdown or a compact template DSL, and the tool renders the PDF deterministically.

You get that tool's actual output quality. With makesPDF's MCP server (render_markdown or render_template), that is the makespdf-markdown row in the table above: 67 KB, passes both PDF/UA-1 and PDF/A-2a, with CJK and colour emoji intact and repeatable layout across runs.

Pros and cons

Pros

  • Fastest path from a rough brief or messy notes to a first draft.
  • When paired with a deterministic rendering tool (MCP / API / skill file), agents can author reusable templates once and let your app render thousands of documents with no AI in the render path.

Cons

  • Code-sandbox PDFs (ReportLab / fpdf) are untagged, non-deterministic, and fragile on tables and non-Latin text.
  • Prompting an LLM to write raw HTML for Puppeteer burns tokens on boilerplate and drifts across model versions.
  • Even with good tools, important templates still benefit from a quick human eye on spacing, wording and variable names.

When AI-assisted PDF creation makes sense

  • Quick one-off personal draft: Chat sandbox or HTML artifact → browser print is fine if nobody needs PDF/UA compliance or repeatable branding.
  • Production agent workflows or rapid template authoring: Keep the AI out of the rendering step. Have the agent write Markdown or a validated template DSL and hand it to a deterministic renderer (see makesPDF or LLM + Puppeteer vs makesPDF).