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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

999 views 23 13
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