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.
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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.