Fix PDF download issues with NGINX reverse proxy
When you're using Nginx(opens in a new tab) as a reverse proxy in front of Document Engine, and PDF download using any available means (Web SDK(opens in a new tab), Web UI, or Server API(opens in a new tab)) fails, make sure that the title of the document doesn't contain special, non-printable characters, e.g. escape codes.
To check if you're running into this issue, check the following:
- Does the download directly through Server, bypassing Nginx, works correctly?
- Does the download for documents with ASCII title works correctly?
If the answer to both of these questions is "yes", then you're likely seeing this issue.
To circumvent this, you need to re-upload the PDF file and provide a sanitized document title. You can pass a custom title on upload using the Server API(opens in a new tab).