hhurz / tableExport.jquery.plugin

jQuery plugin to export a html table to JSON, XML, CSV, TSV, TXT, SQL, Word, Excel, PNG and PDF
MIT License
984 stars 714 forks source link

Issue with PDFmake & changing parameters #330

Closed BGB2k11 closed 3 years ago

BGB2k11 commented 3 years ago

I would love to have the H5 in my PDF as a title

PDF make works but i can not get the Docdefinitions to work:

 <table data-toggle="table" data-pagination="true" data-sortable="true" data-show-footer="true" data-search="true" data-show-print="true" data-show-export="true"
        data-export-types="['excel', 'pdf']" data-export-data-type='all'
        data-export-options='{
          "fileName": "tableExport",
          "worksheetName": "tableExport",
          "htmlContent" : "true",
          "pdfmake": {
            "enabled": true,
            "docDefinition": {
                    "header": "Title",
                    "pageSize": "A4", 
                    "pageOrientation": "portrait"
                },
            },
        }'>

What am i doing wrong ?

hhurz commented 3 years ago

Thats out of scope of this plugin