on wordpress-site want print pdf in favor html-content. since don't want mess around theme decided embed piece of code post.
my code (see below) works perfect (no errors in firebug) when printing post in firefox webpage printed , when printing in ie10 see common header , footer in conclude printed pdf unable view it.
function printpdf(pdffile) { $('link[media="print"]').remove(); $('style[media="print"]').remove(); $('head').append('<link href="'+ pdffile + '" rel="alternate" type="application/pdf" title="pdf-versie" media="print" />'); } someone can me?
since pdf controlled plugin, you'd have hook plugin make print properly. might able force work using mozilla's pdf.js on site. it's built firefox, may able have work site.
Comments
Post a Comment