If “Full Page Capture to PDF ” option is enabled please usebeforeImageToPdf()
?and?afterImageToPdf()
?JavaScript functions for changing PDF document.
For example, go to the plugin settings page -> “Custom Code” tab, mark “Activate custom JavaScript code.” checkbox in the “JavaScript” section and add the following code:
function beforeImageToPdf() {
document.getElementById("site-header").style.display = "none";
}
function afterImageToPdf() {
document.getElementById("site-header").style.display = "block";
}
Replace “site-header” on the id of the element you need to hide.
The Custom Code tab is available in Pro version only.