When I save a pdf document from a link, it saves it as an xml file rather than pdf

How can I save a pdf file from a link (without opening it first) as a pdf? I click on it, tell it to download, and it downloads it as an xml file. If I just open the file from the link, it is a pdf file, so it isn't a problem with the link. The site I'm downloading from has a separate link to a Word document, and that one works just fine to save it as a Word document. Why wouldn't the pdf one work as it should?

Posted on Aug 1, 2020 7:16 AM

Reply
7 replies

Aug 1, 2020 8:51 AM in response to aslsigns

Some sites that are using a content management system (e.g. Drupal, etc.) establish server-side links on the site that point to the real file on the server, and by doing that, these links need not administratively altered for external access, if the actual PDF file has a name change.


You will know if you are looking at a CMS managed site, because the browser status bar link will not end in a file.pdf.


In that case, you will have to click that link to get the CMS to resolve it to the actual server-side PDF file that will then appear in your browser, and that you can then save locally. Some of these CMS links actually have a directive (target="_blank") in the link that forces it to open in a new browser window or tab. These, you won't be able to right-click and download.



Aug 1, 2020 7:29 AM in response to aslsigns

Does this happen to all pdf file downloads from links? Or just certain ones from certain places?


Maybe not optimal, but one workaround you might try is to use the control-click "Download Linked File as..." option and explicitly tack the .pdf onto the filename if it isn't already there.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

When I save a pdf document from a link, it saves it as an xml file rather than pdf

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.