Totally Remove Title from Datatables pdfHtml5 Export
Totally Remove Title from Datatables pdfHtml5 Export
gentestnew
Posts: 8Questions: 1Answers: 0
Pleaes help
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Totally Remove Title from Datatables Export especially in pdfHtml5 Export
Answered several times before, e.g.
https://datatables.net/forums/discussion/54065
Thank you very much tangerine
But that thread has commented by colin says,
colincolin Posts:
January 2019 Answer ✓
Hi @harshithg ,
The title property is part of the excel button, not the collection, so you would declare it like this:
anyone please..
Does this example help?
Kevin
@kthorngren Thank you so much for look after my q,
but it is still remaining. when I try to export pdf titles comes on top. i tried many ways.
Please Help...
What did you try? The example points to the
buttons.exportInfo()
docs to explain how to use the parameters. For thetitle
it states this:Did you set
title
tonull
? Here is an example:http://live.datatables.net/zasajeyu/1/edit
Kevin
@kthorngren
Thank you very much and that did very help me to understand the problem.
and another small question.
which is even title is not appearing there is empty page for title( have set A4 pages for each row contains images,)
below is my code for extend,
Thank you very much Mr. Kevin
See this thread for having the title on every page,
Colin
@colin
Thank you very much,
but i want to remove title and whole title row, when i apply code below,
along with extend
title: null,
code is not working or render out the pdf,
Please help,
function ( doc ) {
if (doc) {
doc.styles.title = {
color: '#4c8aa0',
fontSize: '50',
alignment: 'center',
display: 'none'
},
doc.pageMargins = [0,0,0,0];
for (var i = 1; i < doc.content[1].table.body.length; i++) {
doc.content[1].table.body[i][0] = {
image: '<?php echo $base64; ?>', //this doesn't work, as only 1 image is shown in PDF
width: 595,
just because of the above code export black A4 page for header title, i want remove it.
Could you update Kevin's test case, please, to have your most recent code - that way we're all looking at the same thing,
Colin