Socket
Socket
Sign inDemoInstall

@diplodoc/docs2pdf

Package Overview
Dependencies
162
Maintainers
9
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @diplodoc/docs2pdf

Package to turn Diplodoc projects into PDFs


Version published
Weekly downloads
6
increased by100%
Maintainers
9
Install size
41.4 MB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 21 Nov 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc