How to Customize All PDF exports Without Duplicating the customize property

How to Customize All PDF exports Without Duplicating the customize property

TumeloMTumeloM Posts: 4Questions: 2Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:

I want all pdf exports to used the custom header without having to duplicate the code in all datatable initialization. Here is the test case live.datatables.net/qabenajo/3/edit

i tried to default the pdf customization but when i add other properties like title, it removes the default

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,489Questions: 1Answers: 10,470 Site admin
    Answer ✓

    Make it a named function - e.g.:

    function pdfCustomize (doc) {
      ...
    }
    

    then

    customize: pdfCustomize
    

    Allan

  • TumeloMTumeloM Posts: 4Questions: 2Answers: 0

    Wow thank you, solution works perfectly!

Sign In or Register to comment.