Swagger-codegen: Swagger Documentation in PDF

Created on 10 Feb 2017  路  5Comments  路  Source: swagger-api/swagger-codegen

Description

Hi, I wanted to know is there a feature where the spec.json can be converted to a pdf file just like the static documentation.

Commands

Something like
java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate \
-i http://petstore.swagger.io/v2/swagger.json \
-l pdf

Suggestion help wanted

Most helpful comment

y agree to this feature

All 5 comments

@rohitsakala currently, there's no direct export to pdf but we would welcome contributions to support that.

@rohitsakala @wing328 pls take a look at the Swagger2Markup (https://github.com/Swagger2Markup/swagger2markup) project, they allow to convert to Asciidoctor files and then to HTML sites or PDF format.

y agree to this feature

As a workaround, you may consider using html or html2 to generate HTML documentations and then use 3rd-party tools to convert the HTML into PDF.

Was this page helpful?
0 / 5 - 0 ratings