Class PdfPartProcessorBaseAbstract

PdfPartProcessorBase is class that can create pdfmake content blocks with method genDef and create markdownToPdfmake method that can convert markdown to pdfmake content blocks. from openapiTree that conains information about openapi specs

Abstract

Hierarchy

Constructors

Methods

Constructors

Methods

  • This method create pdfmake content blocks by openapiTree that contains information about openapi specs, by localize that contains information about localize pdfmake content blocks, and by includeExample that contains information about requests and responses.

    Example

    async function main() {
    const processor = new PdfPartProcessor();
    const openapiTree = {} as OpenapiInfoV3;
    const localize = {} as Localize;
    const includeExample = true;
    const result = await processor.genDef(
    openapiTree,
    localize,
    includeExample
    );
    }

    main();

    Parameters

    Returns Promise<Content>

Generated using TypeDoc