Converts a openapi spec file to pdf. Based on RapiPDF
- Supports Swagger 2.0 and OpenAPI 3.0
- Supports weburl or local file path for spec
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