Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Powershell script to export an entire Confluence Space

Sven-Peter Barth April 27, 2025

Hello everyone,
I am looking for a way to automatically export specified Spaces as PDF.
The reason for this is that some of our employees have to work offline, but they still need to have access to the Confluence documentation to be able to do their work.
I would like to automate the whole thing so that the employee does not have to do anything but still have the latest version of the documents on his notebook as a local copy.
someone has a solution approach for me because I have not yet worked with the RAST API.

1 answer

0 votes
Piyush Annadate _ACE Pune_
Community Champion
May 4, 2025

Hi @Sven-Peter Barth ,
Since you're looking for Powershell, I may help you for the key part of the any scripting - 'how to get the data list?'

Here's the process wherein you can hit an API to export the pages into PDF - https://support.atlassian.com/confluence/kb/rest-api-to-export-and-download-a-page-in-pdf-format/

Prior that you need below requirements:
1. List of spaces required for export
2. For each space, you need list of pages (id and details) 
3. Pass those list of pages into script and export them.

Python would be good as well - https://stackoverflow.com/questions/75583746/how-do-i-pdf-export-one-or-more-confluence-datacenter-server-spaces

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.2.2
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events