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 votes
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
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,144 views 4 6
Read article

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