Customizing PDF for generating header image
Customizing PDF for generating header image
 kinjal            
            
                Posts: 1Questions: 1Answers: 0
kinjal            
            
                Posts: 1Questions: 1Answers: 0            
            Hi,
I have modified the ZeroClipboard.as and generated .swf file for adding header image in the PDF generated.
Below is the code which I included for header image in my js:
"oTableTools" : {
                    "aButtons" : [
                                  {
                                                          "sExtends" : "pdf",
                                      "sToolTip" : "Export to PDF",
                                      "sButtonClass" : "btn btn-white btn-primary  btn-bold",
                                      "sButtonText" : "<i class='fa fa-file-pdf-o bigger-110 red'></i>",
                                       "fnClick": function (nButton, oConfig, flash) {
                                          this.fnSetText(flash, "title:" + this.fnGetTitle(oConfig) + "\n"
                                                   + "headerImage:" +
                                                                  "/9j/4AAQSkZJRgABAQAAAQABAAD//g.......",
                                                                    + "\n"
                                                  + "colWidth:" + this.fnCalcColRatios(oConfig) + "\n"
                                                  + "orientation:" + oConfig.sPdfOrientation + "\n"
                                                  + "size:" + oConfig.sPdfSize + "\n"
                                                  + "--/TableToolsOpts--\n" + this.fnGetTableData(oConfig));
                                          }
                                                     }]
}
But on generating the pdf I am not able to see the header image.
Please suggest if my code needs any correction.