diff --git a/js/buttons.html5.js b/js/buttons.html5.js
index 402bf2d1..17866147 100644
--- a/js/buttons.html5.js
+++ b/js/buttons.html5.js
@@ -1333,12 +1333,16 @@ DataTable.ext.buttons.pdfHtml5 = {
var rows = [];
if ( config.header ) {
- rows.push( $.map( data.header, function ( d ) {
- return {
- text: typeof d === 'string' ? d : d+'',
- style: 'tableHeader'
- };
- } ) );
+ /* ----- BEGIN added/edited Code ----- */
+ for ( var i=0, ien=data.header.length ; i