TableTools PDF export with hidden columns
TableTools PDF export with hidden columns
SzymonK
Posts: 1Questions: 0Answers: 0
Hello.
I have noticed an issue using TableTools. When using hidden columns, PDF is generated wrongly.
To reproduce problem:
1) Go to http://datatables.net/extras/tabletools/
2) Execute in browser's console the code:
[code]
var oTable = $('#example').dataTable();
oTable.fnSetColumnVis(2, false ); // example columns
oTable.fnSetColumnVis(3, false );
[/code]
3) Export to PDF.
In the end in PDF file we have text placed over another text. Is there any way to export visible data only, or send to our PDF generator real number of columns in the table? How can I do that?
Thank you,
Szymon
I have noticed an issue using TableTools. When using hidden columns, PDF is generated wrongly.
To reproduce problem:
1) Go to http://datatables.net/extras/tabletools/
2) Execute in browser's console the code:
[code]
var oTable = $('#example').dataTable();
oTable.fnSetColumnVis(2, false ); // example columns
oTable.fnSetColumnVis(3, false );
[/code]
3) Export to PDF.
In the end in PDF file we have text placed over another text. Is there any way to export visible data only, or send to our PDF generator real number of columns in the table? How can I do that?
Thank you,
Szymon
This discussion has been closed.
Replies
any one?