chapter-pdf-review

Convert chapter review HTML files to print-optimized PDFs using Microsoft Edge headless mode.

1|Updated May 26, 2026
One-click install
npx skills add https://github.com/nimdvir/dima-publishing --skill chapter-pdf-review-nimdvir
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: chapter-pdf-review
Source: https://github.com/nimdvir/dima-publishing/tree/main/.agents/skills/chapter-pdf-review
Command: npx skills add https://github.com/nimdvir/dima-publishing --skill chapter-pdf-review-nimdvir

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Producing printable, offline-readable versions of BITM330 chapter review pages requires manually rendering styled HTML and printing it to PDF, which is repetitive and error-prone when done by hand. ## Core Features & Use Cases - Headless PDF Conversion: Renders the chapter review HTML in Microsoft Edge headless mode and prints to a clean PDF with no headers or footers. - Automatic HTML Build: Regenerates the review HTML via build-chapter-html.ps1 before conversion unless -SkipHtmlBuild is specified. - Index Integration: Updates the master review index (review-index.html) with a link to each new dated PDF. - Use Case: An instructor needs a printer-ready version of chapter 5 for offline grading; running the skill with chapter number 5 produces ch05-review-YYYY-MM-DD.pdf in the chapter folder. ## Quick Start Build a print-ready PDF for chapter 5 of the database book from its latest review HTML.

Frequently Asked Questions about chapter-pdf-review

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

FAQPage Schema
How do I convert an HTML chapter review to PDF on Windows?▼

Run the skill with the chapter number, such as chapter-pdf-review 5. It renders the review HTML in Microsoft Edge headless mode with --print-to-pdf and saves a dated PDF in the chapter folder.

How to generate a PDF without rebuilding the review HTML?▼

Pass the -SkipHtmlBuild flag, for example chapter-pdf-review 5 -SkipHtmlBuild. The script then uses the most recent existing chNN-review-YYYY-MM-DD.html file instead of regenerating it.

Does Microsoft Edge headless printing require an internet connection?▼

Edge headless fetches Cloudinary images over HTTP during rendering, so an internet connection is needed for images to appear. Offline runs produce PDFs with broken image placeholders.

Why do YouTube videos not play in the generated PDF?▼

PDFs are static documents, so Edge headless captures only the iframe placeholder or video thumbnail. Embedded YouTube players cannot render interactive video content in print output.

What are the limitations of Edge headless PDF conversion?▼

It requires Chromium-based Microsoft Edge on Windows 10 or later and an existing review HTML file. Output size varies from 1 to 5 MB depending on the number of Cloudinary images in the chapter.