Skip to content

Conversation

@mphstudios
Copy link
Member

@mphstudios mphstudios commented Jan 21, 2026

See the updated lib/pdf documentation in this pull-request

Added

  • PDF engines (Paged.js, PrinceXML) output debug statements when --debug flag is used
  • Adds a quire pdf command option to specify the output path

Usage

# Use project config default location
quire pdf

# Custom absolute path (overrides project config)
quire pdf --output /path/to/my-publication.pdf

# Custom relative path (resolved from project root, overrides project config)
quire pdf --output downloads/book.pdf

# Combined with other options
quire pdf --build --engine prince --output final-print.pdf

Changed

  • Lib PDF throws custom PdfGenerationError errors
  • Use lib/reporter to provide user feedback during the PDF generation progress

Now when running quire pdf, users see:

⠋ Generating PDF using Paged.js... (3s)
  Input: /project/_site/pdf.html      ← displayed only in verbose mode
  Output: /project/_site/_downloads/publication.pdf

Using --verbose stages during processing are displayed to the user:

⠋ Rendering PDF... (12s)
⠋ Generating page map... (15s)
⠋ Writing PDF files... (18s)
✔ PDF saved to /project/_site/_downloads/publication.pdf

on failure:

✖ PDF generation failed

@mphstudios mphstudios marked this pull request as ready for review January 21, 2026 18:53
@mphstudios mphstudios changed the title Feature: pdf command output option Feature: PDF command option for output path Jan 21, 2026
@mphstudios mphstudios marked this pull request as draft January 21, 2026 19:07
@mphstudios mphstudios requested review from fchasen and removed request for fchasen January 21, 2026 20:31
@mphstudios mphstudios marked this pull request as ready for review January 21, 2026 22:50
@mphstudios mphstudios changed the title Feature: PDF command option for output path Feature: PDF command options, error handling, and testing Jan 21, 2026
@mphstudios mphstudios changed the title Feature: PDF command options, error handling, and testing PDF command options, error handling, and testing Jan 21, 2026
@mphstudios mphstudios force-pushed the feature/pdf-output-option branch 2 times, most recently from 9a0ae52 to 5d04407 Compare January 22, 2026 22:03
Base automatically changed from refactor/cli-output-modes to feature/lib-reporter January 23, 2026 01:14
@mphstudios mphstudios force-pushed the feature/lib-reporter branch from 2db734f to f7a805d Compare January 23, 2026 03:02
@mphstudios mphstudios force-pushed the feature/pdf-output-option branch from 5d04407 to b17621f Compare January 23, 2026 03:16
@mphstudios mphstudios force-pushed the feature/lib-reporter branch 2 times, most recently from 52e304e to 480d484 Compare January 23, 2026 23:46
@mphstudios mphstudios force-pushed the feature/pdf-output-option branch from b17621f to 18ea507 Compare January 24, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants