Converts Markdown study content to print-ready PDF documents with professional formatting. Supports full pipeline from source PDF extraction through to styled PDF output.
Ships in pinakdhabu-exam-prompt. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generates print-ready, professionally formatted PDF documents from Markdown study content. Designed for creating exam-ready printed materials — unit notes, PYQ solutions, syllabus references, formula sheets, and master solutions.
Supports Node.js (Playwright — primary, renders LaTeX via KaTeX) and Python (weasyprint — fallback, Unicode math only). Includes a QP (Question Paper) variant that renders LaTeX equations via KaTeX and uses Times New Roman for authentic exam-paper formatting.
Dependency note: The core MD→QP-PDF pipeline runs on Node.js only (
marked+playwright). Python is optional — only needed for PDF text extraction (pdf-extract.py) or the weasyprint fallback. SeeDEPENDENCIES.mdfor full install instructions.
Source PDF (syllabus/PYQ)
│
▼ [pdf-extract.py / pdftotext / OCR]
Plain Text (.txt)
│
▼ [Manual authoring or AI-assisted structuring]
Markdown Notes (.md)
│
▼ [convert-to-pdf.py or convert-to-pdf.js]
Print-Ready PDF (.pdf)
Use scripts/pdf-extract.py or the universal-document-reader skill to extract text from source
PDFs.
Structure the extracted text into Markdown with proper headings, tables, code blocks, and exam-style formatting.
Use one of the conversion scripts to generate a print-ready PDF.
For authentic question-paper formatting with equations rendered via KaTeX:
# Node.js (recommended — renders LaTeX via KaTeX)
node scripts/convert-qp-to-pdf.js paper.md paper.pdf
# Python (basic — Unicode math fallback)
python3 scripts/convert-qp-to-pdf.py paper.md paper.pdf
Requires (Node): npm install marked playwright && npx playwright install chromium Requires
(Python): pip install markdown weasyprint
Note: The QP variant uses
@font-faceto load Times New Roman from system fonts and converts[ ... ]math blocks to$$ ... $$KaTeX delimiters. Inline\mu,\alpha, etc. are rendered via CDN-loaded KaTeX auto-render.
When generating an SPPU QP PDF, use these exact layout properties extracted from actual SPPU QPs across FE/SE/TE/BE and 2012/2015/2019/2024 patterns:
| Property | Main Pattern (2019/2015 SE/TE/BE) | BE 2012 | FE 2024 (normalized) |
|---|---|---|---|
| Page size | A4 (595.3×841.9 pt) | A4 (595.3×841.9 pt) | A4 (595.3×841.9 pt) |
| Left margin | ~70.8 pt (~1″) | ~70.8 pt | ~70.8 pt |
| Right margin | ~48.1 pt | ~48.1 pt | ~48.1 pt |
| Top margin | ~56.3 pt | ~56.3 pt | ~56.3 pt |
| Bottom edge | ~59–63 pt | ~62.9 pt | ~59–63 pt |
| Text area | ~476 × 723 pt | ~476 × 723 pt | ~476 × 723 pt |
| Paper code | PC#### (no hyphen) | P#### | PC-#### or PD#### |
| Producer | Distiller 11.0 + iTextSharp 5.5.9 | iTextSharp 5.5.9 | Distiller 11.0 / cairo |
Layout structure:
Total No. of Questions : N] SEAT No. : [number]
[Paper Code] [Total No. of Pages : N]
[Paper Number] e.g., [6352]-35
[Program Name]
[SUBJECT NAME IN ALL CAPS]
(Pattern) (Semester) (Subject Code)
Time : [X] Hours] [Max. Marks : XX]
Instructions to the candidates:
1) [Instruction 1]
2) [Instruction 2]
Typographic Rules:
), indent 3 spaces**Q1)**a) b) c), bold, indent[N] brackets, right-aligned**OR** centered on its own line# Notes/study material
python3 scripts/convert-to-pdf.py notes.md
# Question paper (with QP formatting)
python3 scripts/convert-qp-to-pdf.py paper.md paper.pdf
# Batch: wrap in a loop
for f in *.md; do python3 scripts/convert-to-pdf.py "$f"; done
Requires: pip install markdown weasyprint
# Notes/study material
node scripts/convert-to-pdf.js notes.md
# Question paper (with KaTeX math + Times New Roman)
node scripts/convert-qp-to-pdf.js paper.md paper.pdf
Requires: npm install marked playwright && npx playwright install chromium
| Feature | Detail |
|---|---|
| Page Size | A4 with 2cm margins |
| Headers | Styled h1/h2/h3/h4 with distinct colors |
| Tables | Professional styling, alternating row colors |
| Code Blocks | Dark theme (GitHub Dark style), monospace font |
| Inline Code | Light gray background with accent color |
| Page Numbers | Centered at bottom |
| Blockquotes | Left-accented blue border |
| Page Breaks | Avoided inside tables, code blocks, blockquotes |
| Diagrams | Mermaid or image support via HTML |
| Scenario | Description |
|---|---|
| Unit Notes → PDF | Convert subject unit notes to printable study sheets |
| PYQ Solutions → PDF | Generate print-friendly previous year question solutions |
| Formula Sheets → PDF | Create compact formula reference PDFs |
| Syllabus Reference → PDF | Print official syllabus with CO-PO mapping |
| Master Solutions → PDF | Compile full subject solutions into one document |
| Flashcards → PDF | Generate printable flashcard sheets |
The CSS template can be customized by editing the script:
--primary: #0d3b66, --accent: #1b5a8c, --code-bg: #0d1117| Situation | Action |
|---|---|
| Markdown parse error | Validate Markdown syntax; check for unclosed code blocks or mismatched delimiters |
| Font not found | Fall back to system fonts (Segoe UI, Calibri); note font substitution in output |
| PDF renderer unavailable | Ensure Playwright is installed (npx playwright install chromium); fall back to weasyprint (Python) |
| Page count exceeds limit | Adjust margins or font size; split document into multiple volumes if necessary |
img tags)This skill integrates with the session config system (deps/session-profile.json). Before
executing, check for an existing session profile:
deps/session-profile.json exists, read university, subject, pattern, and exam_type
fields to auto-configure the skill.setup-exam-prompt (or npm run init) first.What SKILL.md sets; muted values are Claude Code's defaults
30 skills in this plugin
/universal-agent-normalizerUniversal agent normalizer that detects which AI coding agent is running and maps the Exam Prompt skill system to the agent's native configuration format. Supports 20+ coding agents as of June 2026. Ensures every agent can discover, load, and invoke all 30+ skills regardless of its native skill mechanism. Run this skill first whenever you are onboarding a new agent or if skills fail to load. Works for any university worldwide.
/universal-a-plus-answer-writerGenerates exam-ready A+ answers for ANY university worldwide — SPPU, VTU, IITs, NITs, MIT, Oxford, Cambridge, Harvard, NUS, and 50+ more. Covers ALL question types (theory, numerical, MCQ, case study, derivation, diagram, design, etc.), ALL mark levels (1-100+), ALL exam conditions (closed/open book, online, oral, lab, take-home), ALL Bloom's levels, and ALL command words. Pre-configured with SPPU Computer Engineering intelligence. Universally adaptable via syllabus PDF input. Trigger on ANY exam answer request. Never trigger for lab practical reports, project documentation, or coding assignments unless asked.
Other plugins' skills for the same job
/universal-assignment-writerGenerates assignment-ready content for any university worldwide across all assignment types (theory, numerical, case study, research, literature review, project proposals, design, analysis, comparison, critical review, problem-solving, and diagram/illustration). Supports multiple output formats, evaluation depth mapping, marking scheme generation, and citation requirements. University-agnostic.
/pinakdhabu-exam-prompt:universal-document-generatorfrom pinakdhabu-exam-prompt
pinakdhabu-exam-prompt@awesome-skills-plugins-for-students is listed by studentsuite/awesome-skills-plugins-for-students — review the source before installing
npx claudepluginhub studentsuite/awesome-skills-plugins-for-students --plugin pinakdhabu-exam-prompt