PDFMake customize function not working.
PDFMake customize function not working.
Ahmad Raza
Posts: 1Questions: 1Answers: 0
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
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