import { ICreatePDF , IFonts , IFontTypeConfiguration } from './interfaces' ; import { DocumentDefinition } from './document-definition' ; import pdfMake from 'pdfmake/build/pdfmake' ; /**
 * Main class that contains the essencial for build the PDF
 */ export class PdfMakeWrapper extends DocumentDefinition { param fonts { { [ propName : string ] : string } } param fontTypesConfig { { [ propName : string ] : IFontTypes } } example public static setFonts ( fonts , fontTypesConfig ? ) { pdfMake . vfs = fonts . pdfMake . vfs ; if ( fontTypesConfig ) { pdfMake . fonts = fontTypesConfig ; } } /**
     * Create the PDF
     */ public create ( ) { return pdfMake . createPdf ( this . getDefinition ( ) ) as ICreatePDF ; } param num deprecated public ln ( num = 1 ) { if ( num < 1 ) num = 1 ; return '\n' . repeat ( num ) ; } }