Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Export to PDF

Faizul Hoda October 9, 2020

Hi,

We are exporting a Confluence Space to PDF using a script as follows:

USRNAME=username
USRPWD=password
CONFBASEURL=http://127.0.0.1:8090/confluenceSPACE_KEY=SPACEKEY

curl -s \
    --user $USRNAME:$USRPWD \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -X POST \
    -d '{ "jsonrpc" : "2.0", "method" : "exportSpace", "params" : ["'${SPACE_KEY}'"], "id": 7 }' \
    ${CONFBASEURL}'/rpc/json-rpc/pdfexport?os_authType=basic'

How ever this invokes the normal export without further options. I would like to add options to this call that I can achieve manually as shown under:

image.png

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events