PDFMake customize function not working.

PDFMake customize function not working.

Ahmad RazaAhmad Raza Posts: 1Questions: 1Answers: 0
edited May 2022 in Free community support

https://datatables.net/extensions/buttons/examples/html5/pdfImage

I copied the above example to add image in a pdf export. But It's showing me an error:
undefined local variable or method 'doc'

Please help me solve this error.

Thanks!

Answers

  • colincolin Posts: 15,142Questions: 1Answers: 2,586

    It's working in the example you linked to, so it must be a cut&paste problem. We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

Sign In or Register to comment.