Skip to main content

Getting “Error 442” When Using Salesforce File Link in API

Updated over a month ago

Issue:

You’re receiving Error 442 when trying to process a file hosted in Salesforce through the PDF.co API.

This error usually happens when the Salesforce file link provided does not point directly to the file’s binary content (instead pointing to a preview or download page), causing the API to reject it as an invalid file type.

How to fix it

Helpful tips:

  • Test the direct link in a browser’s incognito mode – it should download the file without needing login.

  • Confirm the file is a supported format (PDF, JPG, etc.).

Did this answer your question?