I have a table named sample. The table contains data within the a href
tag.
I want to convert the table to pdf format. My code is:
var toPDF = function(htmlId, config ){
if( $('#'+htmlId).length > 0)
{
reportParameters['reportString'] = $('#'+htmlId).html();
reportParameters['config'] = JSON.stringify(config);
window.open('url','Page');
}
else
{
alert('Invalid HTML ID');
}
};
function myFunc()
{
var conf = {
'headerCenter':'sample',
'pageSize':'A4',
'headerFontSize':18,
'headerLine':true,
'headerSpacing':2,
'footerLine':false,
'footerCenter':'Date: [date] [time]',
'footerRight':'Page[page]',
'footerFontSize':8,
'footerSpacing':1
}
toPDF('sample',conf);
}
The above code works fine. But my problem is, the pdf data contains the link data as blue color and underlined.
How can I remove link color and underline??
check this both css code !!
a {color:black;text-decoration:none;}
a:hover{text-decoration:none;color:red;}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.