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:

using: https://developer.atlassian.com/confdev/deprecated-apis/confluence-xml-rpc-and-soap-apis/remote-confluence-methods#remoteconfluencemethods-pages

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

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -