Export a single Confluence page as PDF (Python) -
i have python script trying export confluence page pdf , have tried several methods unsuccessfully:
1.wget:
wget --ask-password --user xxxxxxxx -o out.pdf -q http://confluence.xxxx.com/spaces/flyingpdf/pdfpageexport.action?pageid=xxxxxxxx
this won't work because returns login dialog rather actual pdf.
2.remote api:
there exportspace method works want single page, getpage method doesn't export pdf far can tell. technically deprecated atlassian instead recommends:
3.rest api
using: https://docs.atlassian.com/atlassian-confluence/rest/latest-server/
this doesn't seem have option export page pdf
i appreciate answer makes of these methods work or if have different approach, don't care long can pdf of page python script.
Comments
Post a Comment