How to print table with background image watermark in all pages?
How to print table with background image watermark in all pages?

image appears only in first page
extend: 'print',
customize: function (win) {
$(win.document.body)
.css('font-size', '10pt')
.prepend(
'<img src="http://datatables.net/media/images/logo-fade.png" style="position:absolute; top:0; left:0;" />'
);
$(win.document.body).find('table')
.addClass('compact')
.css('font-size', 'inherit');
}
This discussion has been closed.
Answers
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
https://datatables.net/extensions/buttons/examples/print/customisation.htmlhttps://datatables.net/extensstions/buttons/examples/print/customisation.html
Thisis the test case I mean
This thread should help, it's asking the same thing.
Cheers,
Colin
I've checked this thread, it adds a text watermark not image.
is there a way to get pages od the print win.doc
to add the background image to every page?
As Allan said in that thread, "For that you would need to refer to the pdfmake documentation to see how their API can be used to do such a thing."
The watermark in Documentation is only text
no image watermark written in documentation.
Is there a way to use the function in the test case & add image to all printing pages?
Is it possible to export an Excel file with watermark text? if not
Can I place a watermark png image on an Excel sheet?
@ShareIdea Please don't please duplicate questions. See the anser provided in your other thread.
Kevin