0.9.2 • Published 8 months ago

jxl-pdf v0.9.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

jxl-pdf

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

Fonts you may need

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
0.9.2

8 months ago

0.9.1

8 months ago

0.9.0

9 months ago

0.6.3

10 months ago

0.5.4

10 months ago

0.8.0

10 months ago

0.6.2

10 months ago

0.5.3

10 months ago

0.6.5

10 months ago

0.6.4

10 months ago

0.5.0

11 months ago

0.4.1

11 months ago

0.4.0

11 months ago

0.7.0

10 months ago

0.6.1

10 months ago

0.5.2

11 months ago

0.6.0

10 months ago

0.5.1

11 months ago

0.2.17

1 year ago

0.2.16

1 year ago

0.2.15

1 year ago

0.2.14

1 year ago

0.2.13

1 year ago

0.2.12

1 year ago

0.2.11

1 year ago

0.2.10

1 year ago

0.3.0

1 year ago

0.2.7

1 year ago

0.2.6

1 year ago

0.2.9

1 year ago

0.2.8

1 year ago

0.3.2

12 months ago

0.2.3

1 year ago

0.3.1

1 year ago

0.2.5

1 year ago

0.3.3

12 months ago

0.2.4

1 year ago

0.2.1

1 year ago

0.2.2

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago