Forums

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

How export the contents of a search to pdf

Admin Flanders Make October 27, 2025

Hello,

We are using a plugin that will not be supported in later versions of Confluence and needs to be disabled.
We would like to save the contents of the pages where this plugin is used for savekeeping.
When i use the "Macro usage", i get a list of all the pages where the plugin is used.
For example https://www.localconfluencesite.local/confluence/dosearchsite.action?cql=macro+%3D+%22signature%22
I would like to export the contents of these page results to PDF.
There are about 258 page results scattered over multiple Spaces, i could do it manually by opening each page and exporting it to pdf, but I prefer an automated way.
I have a license for the Confluence CLI.
What are my options?

Thanks

3 answers

1 vote
Shawn Doyle - ReleaseTEAM
Community Champion
October 27, 2025

Hi @Admin Flanders Make 

I'd script this using the API.  Save the pageids into a array or list, iterate thru it and save as the page as a pdf, you'd need one of the 3rd party addons that have a REST api, there are a few to chose from. if done right you can do the export in the 30 day trial window.

 

 

 

 

0 votes
Admin Flanders Make October 29, 2025

Guys thank you for your response.

I've also contaced Atlassian Support and they send me this:

To achieve the desired use case, it is necessary to obtain the list of pages that utilize the specified macro by employing the following CLI action.

--action getPageList --cql "macro+%3D+%22signature%22"

Once the page titles have been obtained, please execute the following command-line interface (CLI) action to export those pages as PDF documents.

--action exportPage --space "SPAC" --id "720927" --file "Space.pdf" --exportType "PDF"

 I will give your suggestions and the one from Atlassian a try and report back

Thanks

0 votes
Tomislav Tobijas
Community Champion
October 28, 2025

Hi @Admin Flanders Make ,

On top of what Shawn said (it's most likely possible with REST APIs), and as you mentioned that you're using Confluence CLI app, I'd recommend reaching out to Appfire's support team, as they can probably guide you on how you could use the app to get that desired result. Vendors are usually quite helpful when it comes to troubleshooting and use case questions. 🙂

From what I've seen, the app is quite powerful, but I haven't been using it that much to definitely say if it's possible or not. 

Cheers,
Tobi

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events