Batch PDF export as seperate layers

Hello, I was wondering if there is a way to export layers of a layout as seperate pdf files so I can import them to photoshop or illustrator for visualisation purposes.
thanks!