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.
Thanks, ciao, Andrea
Having struggled with this for a bit I took the liberty of creating a GitHub gist detailing the necessary steps. The gist is using NodeJs, but should hopefully be easy to translate to any language.
I was trying to figure out how to do exports through powershell, and your code has been a god damned light in the darkness! Sure, I can't use it in powershell, but it helped me understand how the process works and manage to more-or-less reproduce the same steps.
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@ABoerio 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Brant Schroeder sorry for very late feedback. Thanks for your hint. I'll give it a try for sure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.