Optional
options: IRavageOptionsProtected
_openapiProtected
Optional
_optionsProtected
_pdfAdd new part to array of parts
async function main() {
const partsBuilder = new PartBuilder(
localization,
pdfStyle,
includeExamples
);
await partsBuilder.addPart(new Part1());
}
main();
Add new parts to array of parts
async function main() {
const partsBuilder = new PartBuilder(
localization,
pdfStyle,
includeExamples
);
await partsBuilder.addParts([new Part1(), new Part2()]);
}
main();
Build all pdfParts and return array of them
async function main() {
const partsBuilder = new PartBuilder(
localization,
pdfStyle,
includeExamples
);
await partsBuilder.addPart(new Part1());
await partsBuilder.addPart(new Part2());
await partsBuilder.buildParts();
}
main();
async function main() {
const partsBuilder = new PartBuilder(
localization,
pdfStyle,
includeExamples
);
await partsBuilder.addParts([new Part1(), new Part2()]);
await partsBuilder.buildParts();
}
main();
path to api specification file or url
Generated using TypeDoc
PdfPartBuilderBase abstract class
PdfPartBuilderBase is class that build all pdfParts and can contain them in one array of with type PdfPartProcessor with abstract async method
buildParts
that returns Content frompdfmake/interfaces
moduleIt contains information about localization, pdfStyle and Openapi specification parsed with SwaggerParser
Also PdfPartBuilderBase can add new part to array of parts with abstract async method
addPart
andaddParts
Abstract