Open aguckenber-chwy opened 5 months ago
Update:
Not specifying the api_version
returns the HTML of the exporter page not the PDF. Setting the cloud completely breaks the flow and errors out.
For me those settings work:
...
cloud=True,
api_version='cloud')
...
with open('exported_page.pdf', 'wb') as pdf_file:
pdf_file.write(content)
It's a bit misleading that if you don't specify cloud
arg then it makes it True
by default
if "cloud" not in kwargs:
kwargs["cloud"] = True
but if you don't specify api_version
then it makes it latest
api_version="latest",
and then the pdf export returns html.
Has anyone tested this recently?
https://github.com/atlassian-api/atlassian-python-api/blob/master/examples/confluence/confluence_export_page.py
When I run the code, it errors out with an invalid path.
If I remove
api_version='cloud'
then the call works but the PDF returned is invalid/corrupt and can't be opened.