cannot change the state back since it no longer has access to the cookie set by the controller. This is down to the cookie having an httponly flag set to true in the controller
Thanks for the excellent code pinpointing. Here’s [a fix]( )
In test, the Printing to PDF button appears to be working correctly.