I follow the link below to get a PDF of a page
REST API to export and download a page in PDF format | Confluence | Atlassian Documentation
However, the first curl call is not returning the expected location.
The Cloud version of Confluence does not have an API call to download as PDF. The documentation you followed was for the Data Center version.
There is a feature request here you can vote on to add this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.