Character sheet printing restricted to 1 page

Closed
Feature
Other
Reported by
glydr
Opened
Assigned to
Syarx

Description

When I or my players attempt to print out their character sheet, the print dialog (regardles of output source) is restricted to only the first page. I notice that I now see the WorldAnvil logo at the top of the page (which actually looks great), but wondering if this is linked.   I'm an experienced dev, so I did a bunch of digging and tried different css settings to try and resolve, but with no success. I have even removed ALL custom css that I had created from the page and it still happens.   To get around the problem (as I desperately needed to print out character sheets for a game session), I could run this script in the console (for each page viewed), and this allowed me to print normally. The class ".aerisian-sheet" is obviously in my markup (at the top).     (() => { const sheet = document.querySelector(".aerisian-sheet"   if (!sheet console.error("Could not find .aerisian-sheet" return; }   const printWindow = window.open("", "_blank"   printWindow.document.write( <!doctype html> <html> <head> <title>Printable Character Sheet</title> <style> body { margin: 0; padding: 20px; background: white; }   ${[...document.styleSheets] .map((sheet) => { try { return [...sheetRules].map((rule) => ruleText).join("\
" } catch { return ""; } }) .join("\
")}   @media print { html, body { height: auto !important; overflow: visible !important; }   .aerisian-sheet { position: static !important; height: auto !important; max-height: none !important; overflow: visible !important; } } </style> </head> <body> ${sheet.outerHTML} </body> </html>   printWindow.document.close( printWindow.focus(   setTimeout(() => { printWindow.print( }, 500 })(     Please note that while I am a mac user, this was also reported by my players on Windows and Linux, using diffferent browsers. And I tested on Firefox as well. Same issue

Steps to Reproduce

View Character Sheet Select Print

History

Comments and updates to this report

PEBOVE
I'm having the same problem, specifically with the character sheets for D&D 5E. I also noticed the the print out for the initial page of the character sheet has improved by becoming aligned with an 8 1/2" by 11" format. Unfortunately the improved formating does not extend to things like the spellbook, which needs some sort of protection against spell descriptions being cut in half by the page break and will not print beyond the first page.
mikolaszko Developer
Assigned syarx
Syarx Assignee
We have deployed possible fixes and they seem to work on our tests, can you confirm for your side also? We will close this bug and if you reply that there is a problem we will open it again and
Syarx Assignee
set this bug to closed
Syarx Assignee
Bug has duplicate Printing Statblocks cuts off after some length/size
glydr
My apologies, I should have responded earlier. I went to print off character sheets last week before our session and was pleasantly surprised to find it all sorted. MANY THANKS. Great work, really appreciated.