Thread:Extension talk:SideBarMenu/Exclude Sidebarmenu from Book printed as pdf

Is there a way to hide SideBarMenu from a book when created as pdf.