It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to bulk export blogs in personal space?

When people use their personal space to create blogs, is there a best practices to bulk export these blog posts into pdf format? I know you can export individual posts. 

1 answer

1 accepted

There's a nice little table on what can and can't be bulk exported in which format here.

Being a personal space or global space makes no difference for this.

As you know, you can't export your whole blog easily/directly. You can export your whole (Full Export) personal space to XML, which does include blog posts, even though when you go to export it says this:

Generates an XML file for each page in this space, including those not visible to you. The export includes comments and attachments, but excludes blog posts.

Unfortunately, you cannot pick and choose which posts or even the whole blog to export in XML. You could use an XML to PDF converter, but I'm not sure how that'd turn out.

If you know how to code, the REST API might help. You'd probably have to put in some work to get it to look like you want on a PDF, though.

You'd use something like this to grab the content:

http://example.com/rest/api/content?type=blogpost

Another option, if you code, is to look at the browser's Web Developer Console (name varies by browser) while you export one blog post to a pdf, you can see what it's doing and try to replicate that. Here's an example of one I exported:

https://example.com/spaces/flyingpdf/pdfpageexport.action?pageId=123456789

You could grab all the blog pageIds and run them through the first URL. That'd hopefully get you started.

UPDATE: After playing with it some more, I found that you don't need the code below.  If you don't run it from the UI, it will download the file again.

https://example.com/download/temp/pdfexport-20200102-020120-1636-37/SpaceKey-BlogSample-020120-1636-38.pdf?contentType=application/pdf

If you can't code, then you are probably stuck with "printing" to a PDF instead of actually exporting, which would eliminate any customizations you may have for exporting PDFs in your space. There are a number of ways to print to a PDF. Here's an example I found after a quick Google search.

I hope at least one of the suggestions helps!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

What project did you transition or start on Confluence with the shift to remote work?

It’s been great to hear from fellow users over the last few weeks about the best tips and fun moments you’ve had working on Confluence since the transition to working remote. I’d love to keep the c...

159 views 3 8
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you