Hide connect module from pdf export

Hi there,

in my Connect app I am using a web panel on location “atl.general” to show up at the top of any page.

Is it possible to hide this web panel in a pdf export? Since my web panel content is unnecessary in pdf, I would like to keep it out. How do I notice if my module is rendered in a pdf context, so I can act on it in my code?

Thanks in advance!
Sven

@SvenHe
I had the same problem with my app. This seems to be a bug related to Confluence’s new PDF export service. You can watch this bug ticket for further updates.

1 Like

Hi there,

I have found a solution for my issue. When you only want to hide your app content from PDF, you can simply do this with CSS:

@media print {
  #root {
    display: none;
  }
}

Best regards,
Sven

2 Likes