/openapi2pdf-cli

Generate pdf doc from openapi/swagger spec

Primary LanguageJavaScript

openapi2pdf-cli

Converts a openapi spec file to pdf. Based on RapiPDF

Features

  • Supports Swagger 2.0 and OpenAPI 3.0
  • Supports weburl or local file path for spec

Usage

npx openapi2pdf-cli -i path/to/spec.json -ou path/to/doc.pdf

// OR

npm install -g openapi2pdf-cli

openapi2pdf -i ~/home/openapi-spec.json -o ~/home/pdf-spec.pdf