@PASUPULA REDDY There are no rest api's to export PDF/Word out of Confluence.
But there exists SOAP API's for this - https://developer.atlassian.com/server/confluence/remote-api-specification-for-pdf-export/
Please do verify if SOAP is working with your version of Confluence as Atlassian team is looking to deprecate it as soon as all its features are replicated in REST.
If you hover over the "Export to PDF" and the "Export to Word" buttons in Confluence you can see the links that are called when you press those buttons. You can do a GET on these URLs to get the objects.
So the URL would be something like (for PDF):
"confluenceurl" + "/spaces/flyingpdf/pdfpageexport.action?pageId=PAGE_ID"
The auto-generated filename is then in the "content-disposition" of the return object. But you can always set your own filename.
The content of the file is in the return object's content.
We use the above method and python to dynamically export pages to PDF when we need to.
Hope that helps!
Hi @PASUPULA REDDY ,
you might want to have a look at our Scroll PDF Exporter, which lets you easily create templates using a graphical template designer, without the need to know any CSS.
Scroll PDF Exporter is available via the Atlassian Marketplace and can be tested using a free evaluation license.
Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...
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