npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@surgbc/egw-pdf-generator

v1.0.0

Published

PDF generator for EGW Writings with configurable formatting and pagination

Readme

EGW Writings PDF Generator

A configurable PDF generator for Ellen G. White writings with customizable formatting, pagination, and copyright-compliant alternatives to original pagination.

Features

  • Flexible Page Formats: A4, Letter, Legal, or custom dimensions
  • Typography Control: Font family, size, line height, margins
  • Copyright-Compliant Pagination: Avoid original page reproduction with alternatives:
    • Sequential numbering
    • Chapter-based numbering
    • Custom reference systems
    • No pagination
  • Paragraph Identification Options:
    • Hide completely
    • Show as footnotes
    • Show as margin notes
    • Custom formatting
  • Table of Contents: Auto-generated with configurable depth
  • Progress Tracking: Real-time generation progress
  • Research Compilation: Generate PDFs from search results (coming soon)

Installation

npm install -g @surgbc/egw-writings-pdf-generator

Prerequisites

You need a local EGW writings database. Download content first:

egw-downloader quick-start

Usage

Generate Book PDF

# Basic usage
egw-pdf-generator book --book-id 123 --output "great-controversy.pdf"

# With custom formatting
egw-pdf-generator book \
  --book-id 123 \
  --output "book.pdf" \
  --page-size A4 \
  --font-size 14 \
  --font-family Times \
  --show-paragraph-ids \
  --paragraph-style margin

List Available Books

egw-pdf-generator list-books --language en --limit 50

Generate Configuration File

egw-pdf-generator config --output my-config.json

Use Custom Configuration

egw-pdf-generator book --book-id 123 --config my-config.json --output book.pdf

Configuration Options

{
  "pageSize": "A4",
  "margins": {
    "top": 72,
    "bottom": 72, 
    "left": 72,
    "right": 72
  },
  "fontSize": 12,
  "lineHeight": 1.4,
  "fontFamily": "Times",
  "paragraphIds": {
    "show": false,
    "style": "hidden",
    "format": "sequential"
  },
  "pagination": {
    "show": true,
    "style": "bottom-center",
    "format": "numeric",
    "startNumber": 1
  },
  "toc": {
    "generate": true,
    "maxDepth": 3,
    "pageBreakAfter": true
  }
}

Paragraph ID Styles

  • hidden: No paragraph identification (default)
  • inline: Show IDs within text flow
  • footnote: Show as footnotes at page bottom
  • margin: Show in page margins

Pagination Formats

  • numeric: 1, 2, 3...
  • roman: i, ii, iii...
  • alpha: a, b, c...

Copyright Compliance

This tool helps avoid copyright issues by:

  • Not reproducing original page layouts
  • Using alternative numbering systems
  • Adding educational use disclaimers
  • Providing flexible formatting options

Important: Users are responsible for ensuring their use complies with applicable copyright laws and fair use guidelines.

Examples

Academic Paper Format

egw-pdf-generator book --book-id 456 \
  --font-size 11 \
  --font-family Times \
  --show-paragraph-ids \
  --paragraph-style footnote \
  --output "academic-format.pdf"

Large Print Edition

egw-pdf-generator book --book-id 789 \
  --font-size 16 \
  --page-size Letter \
  --output "large-print.pdf"

Study Edition with References

egw-pdf-generator book --book-id 101 \
  --show-paragraph-ids \
  --paragraph-style margin \
  --font-family Helvetica \
  --output "study-edition.pdf"

Research Compilation (Coming Soon)

egw-pdf-generator research \
  --query "sanctification" \
  --max-results 100 \
  --group-by book \
  --output "sanctification-study.pdf"

License

MIT - Open source software for educational and research use.

Educational and Research Use

This package is designed for educational and research purposes. The EGW writings may be subject to copyright restrictions. Users are responsible for ensuring their use complies with applicable copyright laws and fair use guidelines.