The ShareThis module (http://drupal.org/project/sharethis) adds the ability to share content with popular social networks such as FaceBook. It embeds icons of these sites in a node using JavaScript.
When generating a PDF with the Print module, these icons are not inserted in the content, but it conflicts with the Print module resulting in corrupt PDF documents.
I added a simple workaround in print.tpl.php with a regex removing the JavaScript causing the issue:
$print['content'] = preg_replace("#(src='http://w.sharethis.com/button/buttons.js')#",'',$print['content']);
Johan.
Comments
Comment #1
beautifulmindHello,
Thanks for sharing your tip.
Does this work with 7.x as well?
Regards.
Comment #2
jcnventuraThis needs to be fixed by the sharethis module.
Marking it as a duplicate of #351620: Only display in full and teaser build/view modes (hide ShareThis link on print pages)