You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I'd like to save a page to pdf using a request call. I know the page url, including the page id, but I don't know the request or wiki call.
I haven't been able to find any confluence rest calls related to pdfs.
I'm using Python and the Rest API.
I'm working on the same type of issue but only for pdf's. If you're using Python, you can use the confluence package (https://atlassian-python-api.readthedocs.io/confluence.html) and the export_page function for pdf.
confluence.export_page(page_id)
As the doc indicates, if you're using Confluence Cloud, make sure when you instantiate confluence that you set the api_version to cloud.
confluence = Confluence( url='https://yourcompany.atlassian.net/', api_version='cloud', username=username, password=password)
This is how I solved it. I used curl and sent this command where pageId= 123456 was the ID number of the page. I call that line from a Windows DOS prompt via Matlab.
curl -v -L -u "user_name:password" -H "X-Atlassian-Token: no-check" "https://confluence/spaces/flyingpdf/pdfpageexport.action?pageId=123456" --output "c:\output_dir\confluence_title.pdf"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is it a typo that your pageId is "23456" in your description and "123456" in your curl command, or do you need to add a "1" at the beginning?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
You can do it, like this
https://github.com/atlassian-api/atlassian-python-api/blob/master/atlassian/confluence.py#L770
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond. A long time favorite, Team Cale...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.