@diplodoc/docs2pdf

0.1.0 • Public • Published

docs2pdf

Package to turn Diplodoc projects into PDFs.

Installation

npm i -g @diplodoc/docs2pdf

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/docs2pdf command. This will create PDF files right next to the single page ones.

npx -- @diplodoc/docs2pdf@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

Readme

Keywords

none

Package Sidebar

Install

npm i @diplodoc/docs2pdf

Weekly Downloads

6

Version

0.1.0

License

MIT

Unpacked Size

13.5 MB

Total Files

20

Last publish

Collaborators

  • yndx-birman111
  • martyanov-av
  • vsesh
  • rndnm
  • v8tenko
  • moki
  • 3y3
  • alexey_w100
  • robot-dataui-npm