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 🙏

© 2024 – Pkg Stats / Ryan Hefner

jxl-pdf

v0.9.2

Published

Printable Scripture-related PDFs

Downloads

340

Readme

jxl-pdf

Printable Scripture-related PDFs, from industry-standard source files, via a Javascript library

Fonts you may need

  • Andika: https://fonts.google.com/specimen/Andika
  • Cardo: https://fonts.google.com/specimen/Cardo
  • Charis: https://fonts.google.com/specimen/Charis
  • Ezra: https://software.sil.org/ezra/ (for Hebrew)
  • Gentium Book Plus: https://fonts.google.com/specimen/Gentium+Book+Plus (needed for page numbers)
  • Noto Naskh Arabic: https://fonts.google.com/noto/specimen/Noto+Naskh+Arabic
  • Open Sans: https://fonts.google.com/specimen/Open+Sans
  • Roboto: https://fonts.google.com/specimen/Roboto

Installation

# Install the library

npm install

Running the test projects

node scripts/make_pdf.js -c test/juxtas.json
node scripts/make_pdf.js -c test/psle.json

Script options

Usage: node scripts/make_pdfs.js [options]

-V, --version: Output the version number and exit

-h, --help: Display help and exit

-c, --config (Required): Path to the JSON config file (must exist)

-o, --output : Path to which the final PDF should be written (must not exist unless --force-overwrite flag is set)

-w, --working-dir : Path to a directory for temporary files including originated PDFs. This directory will be created recursively if necessary, and will be cleared whenever the command is run. (default: "~/.jxlpdf/working")

-r, --resources-dir : Path to a directory containing project-specific images etc.

-f, --force-overwrite: When set, will clear and overwrite an existing directory for output. Use with care! (default: false)

-v, --verbose: When set, generates console output for debugging and entertainment purposes (default: false)

-p, --page-format : One of EXECUTIVE, LETTERP, A4P, A3P, A5P, A6P, POCKETP (default: "A4P")

-F, --fonts : The set of fonts to use. Options are allGentium, gentiumOpen, allCharis, charisOpen, allOpen, allCardo, cardoOpen, allRoboto, andikaCharis, notoNaskh (default: "allGentium")

-S, --fontSizes : The set of font sizes to use. The name indicates the body font size and line spacing (in point) (format : {body font}on{line spacing}). Options are 9on10, 9on11, 10on12, 10on13, 12on14, 12on15, 14on16 (default: "9on10")

To normalize PDF with vectorized text using Ghostscript:

gs -dPDFA -dBATCH -dNOPAUSE -dNOCANCEL -dNOPROMPT -dNOSAFER -dQUIET -dPDFACompatibilityPolicy=1 -dNoOutputFonts -sDEVICE=pdfwrite -sOutputFile=out.pdf in.pdf