It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Export a Confluence page to PDF from shell

Hello, I am trying to export a confluence page to a pdf in some build automation (Jenkins).

I have managed to get the pageId of the page I want to export.

When I tried to use the URL in the following fashion

wget {url copied from the tools -> export pdf } -o blah.pdf

I get the following error


$ wget https://confluence.blah.com:8443/spaces/flyingpdf/pdfpageexport.action?pageId=13959783

--2014-01-02 15:20:09-- https://confluence.blah.com:8443/spaces/flyingpdf/pdfpageexport.action?pageId=13959783

Resolving confluence.blah.com(confluence.blah.com)... 105.144.22.63

Connecting to confluence.sisa.samsung.com(confluence.blah.com)|105.144.22.63|:8443... connected.

ERROR: The certificate of ‘confluence.blah.com’ is not trusted.

ERROR: The certificate of ‘confluence.blah.com’ hasn't got a known issuer.

Any suggestions on how I can go about exporting a pageId from confluence to PDF?.
THank you,
/et

4 answers

Add --no-check-certificate to wget command line and it should work mostly.

0 votes

If you want to perform actions on your Confluence instance through cli, I would advice you to have a look at the Atlassian Command Line Interface. Several examples of command you can use, among which pdf page exports, can be found here

Has anyone ever got this working? How did you handle authentication?

Did you ever get this to work along with authentication?

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted 41m ago in Industry Groups

Upcoming Team Tour Government Symposium in Washington D.C.

Calling all Community members from the Washington D.C. area! Atlassian’s Team Tour is heading to your city to host a Government Symposium on May 1st. Join our team and other government agencies to le...

8 views 0 1
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you