Download specific container as a pdf

I'd love to see something similar to utils.downloadPage but that would download only a specific container (and its child components) as a pdf, without having to manually exclude all the other components, and without having the header and extra body space showing around it in the pdf.

This should already be possible @LindenKel :tada: when you call the util you can specify components you'd like to download with the componentsToInclude option, e.g.

utils.downloadPage("example", {componentsToInclude: ["container1"]});

You can find full documentation on the util here!

Thanks, that does what I wanted. My confusion was that componentsToInclude isn't listed in the documentation, unless I'm looking at an old version somehow.

Oh, you're right! I hadn't even noticed that when linking the docs :flushed:

Thanks for flagging it!