universal-document-generator

Convert Markdown files to PDF documents using Node.js.

8|Updated Dec 10, 2025
One-click install
npx skills add https://github.com/pinakdhabu/Exam-prompt --skill universal-document-generator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: universal-document-generator
Source: https://github.com/pinakdhabu/Exam-prompt/tree/main/skills/document-generator
Command: npx skills add https://github.com/pinakdhabu/Exam-prompt --skill universal-document-generator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires marked, playwright, weasyprint, pdf-extract.py, convert-to-pdf.js, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill streamlines the conversion of Markdown content into high-quality PDF documents, removing the need for manual formatting and layout adjustments.

Core Features & Use Cases

  • Markdown to PDF: Convert Markdown notes to professional-looking PDFs with a full pipeline that includes text extraction, Markdown conversion, and PDF generation.
  • PDF Conversion: Offers a PDF-to-Text converter and a PDF conversion backend for both Node.js and Python, allowing for flexibility and customization.
  • Use Case: Ideal for academic use, converting subject unit notes, question paper solutions, formula sheets, and syllabus references into print-ready PDFs.

Quick Start

To generate a PDF from Markdown, simply use the following command: node scripts/convert-to-pdf.js notes.md

Frequently Asked Questions about universal-document-generator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert Markdown notes to PDF for academic study materials?

You can convert Markdown notes to PDF by running `node scripts/convert-to-pdf.js notes.md`, which processes Markdown files into professional PDF documents. This pipeline handles academic formatting for subject units, question paper solutions, and formula sheets.

Do I need Node.js and Python to generate PDFs from Markdown?

Node.js is required for PDF rendering using Playwright. Python is optional, required only for PDF text extraction via pdf-extract.py or fallback conversion using WeasyPrint. The core Markdown to PDF pipeline runs entirely on Node.js.

What is the best way to convert subject unit notes into print-ready PDFs?

Using a full Markdown conversion pipeline is the best way to convert subject unit notes into print-ready PDFs because it applies professional formatting automatically. This removes manual layout adjustments and supports syllabus references and formula sheets.

Can I extract text from PDF files before converting them to Markdown?

Yes, you can extract text from PDF files using the included pdf-extract.py Python script before converting them to Markdown. This supports the complete pipeline from PDF extraction to Markdown conversion to professional PDF output.

Does this Markdown to PDF pipeline support WeasyPrint for fallback conversion?

WeasyPrint is supported as a fallback PDF conversion backend alongside Playwright for Node.js. This provides flexibility and customization options when generating professional PDF documents from Markdown content.