document.getElementById('sw_preview_pdf').addEventListener('load', function () {
var test = document.getElementById('sw_preview_pdf').contentWindow.document.getElementById('download');
test.style.display = 'none'
})