PDF preview maker used on report editor
For now the table of contents is only working on a single level template tree
        
        
            
    Parameters:
| Name | Type | Description | 
|---|---|---|
fields | 
            
            Array | Array of fields | 
document_definition | 
            
            Object | pdfMake config | 
- Source:
 
Returns:
    The created PDF
- Type
 
Requires
- module:knockout
 - module:pdfMake
 - module:ko-mapping
 - module:vfsfonts