Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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 export pdf via REST API?

Hi, 

I'm trying to write a simple Groovy script to communicate with our Confluence server instance and get done automatically the export to pdf o a page whose ID number is known.

I already communicate with Confluence this way to get information about pages, etc... but for this particular task I'm not getting to a solution.

How to get the pdf exported and downloaded to my local download folder, which is what normally happens when I click on the pdf export button?

In the picture the code I'm trying to use and the response I get from the call.

Immagine 2020-11-05 175815.jpg

 

Thanks, ciao, Andrea

1 answer

0 votes
Brant Schroeder Community Leader Dec 31, 2020

@Andrea Boerio here is a previous community post on this using other languages but the web service call will be the same.  https://community.atlassian.com/t5/Confluence-questions/Export-page-to-pdf-using-rest-call/qaq-p/1085529

Hi @Brant Schroeder sorry for very late feedback. Thanks for your hint. I'll give it a try for sure.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.4.1
TAGS
Community showcase
Published in Confluence

Confluence Mythbusters: Does Atlassian even use Confluence?

Hi, Confluence collaborators! As part of #Confluence-Collaboratory month, we’ve created a very special Mythsbusters segment, where we're dive into an interesting myth and uncover the truth behind i...

1,598 views 7 30
Read article

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