1.0.6 • Published 5 months ago

@diplodoc/pdf-generator v1.0.6

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

pdf-generator

Package to turn Diplodoc projects into PDFs.

Installation

npm i -g @diplodoc/pdf-generator

Usage

Step 1: Generate Single Page Files

Run @diplodoc/cli command. This will create an output folder with a single page file for each Table of Contents (ToC) file.

npx -- @diplodoc/cli@latest -i ./docs -o ./docs-output --single-page

Step 2: Convert Single Page Files to PDFs

Run the @diplodoc/pdf-generator command. This will create PDF files right next to the single page ones.

npx -- @diplodoc/pdf-generator@latest -i ./docs-output

Development

Prerequisites

  • node >= 18.x
  • graphicsmagick
  • ghostscript

Don't have graphicsmagick and ghostscript yet?

Follow this guide to install the required dependencies.

Run test

npm run test
1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

9 months ago

1.0.6

5 months ago

1.0.4

7 months ago

1.0.3

8 months ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago