Forums

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

Confluence - Export a page as a JSON object with metatdata to another server

Stephen Crandell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 17, 2019

I have a client that is looking to export pages from confluence as a JSON object with metadata to a RabbitMQ messaging tool on another server. I tried to see if there was a way to do this through Export to PDF and send the PDF as a BLOB over through API but, there is no current API for the Export to PDF functionality since it was moved to a system add-on (that I can tell). I know the Scroll PDF Exporter has some API functionality but, not sure it will even be able to accomplish the feat. I have been able to create a User Macro on the server to add a Button to the page but, I have only been able to reproduce the "Export to PDF" builtin functionality that basically triggers a download to my local machine. So I am looking for any suggestions/resolutions/fixes/workarounds. Any help/direction would be greatly appreciated!

I am currently investigating/trying:

  •  javascript within the user macro to convert PDF to JSON, add the needed metadata, and use API to push it to the RabbitMQ tool
  • Confluence to RabbitMQ integration services
  • Trying to export the page to one of the other formats (HTML or XML), convert to JSON, send to RabbitMQ, convert the JSON back to XML and then to PDF.

 

One restriction I have is that the client needs some way to "Publish" the Confluence pages to trigger the export process.

 

Confluence Server: 6.5.0 and 6.13.5

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events