Can I link to a PDF by page name?

While viewing a page, such as /display/DOC/Page+Name, you can click "Export to PDF" and get a url like /spaces/flyingpdf/pdfpageexport.action?pageId=403746. Is it possible to get the PDF URL using the space and page name?

What I'd like to do is have my CI build automatically fetch release notes as a PDF, which are named based on the version number. It would be very easy if it just has to grab a URL (such as /display/DOC/Page+Name?format=pdf or /display-pdf/DOC/Page+Name), since the CI server knows the version number, but doesn't know the confluence pageId.

2 answers

0 vote
Davin Studer Community Champion Feb 03, 2014

It is not possible to do by page name. Could you go to SQL in your build to look up the id and then submit the URL?

Hi Greg,

if you can develop a plugin, you can write a plugin with a servlet module to do so. The Servlet can get the id via the api and make a redirect to the pdf url, which uses the pageid as a parameter.

Regards

Steve

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Apr 13, 2018 in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

374 views 20 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you