Hello Heather!
same as you I had a hard time getting it "good enough" to print better, so this was the closet code I can get to making it print great.
i am not a coding expert but (know a little bit), here is a revised version:
var styles = `
@media print {
body, * { visibility: hidden; }
html, body { overflow: hidden; transform: translateZ(0); }
#slide {
transform: scale(1) !important; /* Adjusted scale to 1 (no zoom) */
}
#wrapper {
transform: scale(1) !important;
}
#slide,
#wrapper {
width: 100% !important;
height: 100% !important;
overflow: visible !important;
}
#frame {
overflow: visible !important;
}
.slide-transition-container {
overflow: visible !important;
}
@page {
size: letter landscape;
max-height: 99%;
max-width: 99%;
}
.slide-container, .slide-container * {
visibility: visible !important;
margin-top: 0px !important;
margin-left: 0px !important;
}
#outline-panel {
display: none !important;
}
}
`;
var stylesheet = document.createElement('style');
stylesheet.type = 'text/css';
stylesheet.innerText = styles;
document.head.appendChild(stylesheet);
window.print();
This code sets the page size to letter landscape. If you still find the sizing isn’t quite right, you might need to tweak the transform: scale(1) values slightly. For example, you could try transform: scale(0.9) or transform: scale(0.95) to see if it fits better.