Print page as pdf without sidebar and widgets

Anyway to print the current instance as a pdf without the sidebar with a button on the sidebar? Would be even better if I could do it without any widgets in the main page too.

2 Likes

Ok I did a work around for hiding widgets for printing. Just put a “Hide Widgets” check box in the sidebar and then an if not hide_widgets: before each widget. Would be great if there was a function like st.print(sidebar=False, printer=“PDF”).

5 Likes

I’d be intrested in this st.print() function too.
Any updates since post of @Seaon_Horan?

2 Likes

Any update on this. Would love to have this

2 Likes