Chrome and 404 error on app download

In development mode, using a PC and Chrome, generating a pdf for view or download has no problems.
In production on a local server, the same PC and Chrome produces a 404 error. What permissions in Chrome do I need to allow ‘Exports’ to happen from SC apps I create?

Maybe your provider, like mine, has blocked htmltopdf due to security vulnerabilities!

In production go to directory where is deployed … _lib/prod/third/wkhtmltopdf and make all content subdirectory (files eg. wkhtmltopdf-amd64) rights to 755 and try again.

Thanks. I used putty to the server (it is a Synology).
And the command chmod -R 755 ./prod/third/wkhtmltopdf
I can see all files and folders below that point are rwxr-xr-x
I still get an error generating a pdf " 404 The page you are looking for cannot be found"

Make sure wkhtmltopdf is installed on the server (ex. enter next command wkhtmltopdf --version)

After installing Production files to the Synology Server the prod/third/wkhtmltopdf folder contains multiple o/s folders : - bookworm, bullseye, buster, centos8, centos9, linux-amd64, linux-i386, osx, stretch, win Each folder contains it’s own wkhtmltopdf (the win folder also has some dll’s).

The exe in the win folder has properties of File version 0.12.6.0 modified at 10/04/2023 20:18

Using ssl to the same wkhtmltopdf master folder, and within each, experimenting with ./fiename --version does not produce any information about file version. (filename changes slightly within each o/s folder e.g. wkhtmltopdf-amd64 or wkhtmltopdf-i386).

The Synology server is at DSM 7.2.2 running web station, php versions 8.0/8.1/8.2 nginx back end

I’m referring to whether wkhtmltopdf is installed on the server (I’m not talking about the directory located at /prod/third/wkhtmltopdf)—maybe I wasn’t clear. For example, if I create a PDF file on a computer running Windows with Adobe PDF installed and then open that PDF, it will work. However, if I move that PDF file to another computer running only Windows but without Adobe Reader installed, the PDF won’t work. So, you need to install Adobe Reader there as well—I think you get the idea.

// Now, returning to the initial issue: make sure wkhtmltopdf is already installed on your Synology server, matching the operating system running on the Synology server. (For example, the command wkhtmltopdf --version is for Linux and checks the wkhtmltopdf version).

Open PuTTY (I understand that’s what you use) and run the following command to check if wkhtmltopdf is available:
wkhtmltopdf --version
// You should get a response like wkhtmltopdf 0.12.6 (with patched qt) …etc.
If you receive a message like command not found, it means wkhtmltopdf is not installed.
Since DSM Synology doesn’t use a standard package manager (like apt or yum), you’ll need to manually download the appropriate version of wkhtmltopdf and install it. But before doing that, you need to know which version to download. To check the architecture, run the following command in PuTTY:
uname -m
You’ll receive something like x86_64 (64-bit Intel/AMD) or armv7l or aarch64 (ARM) or something else. Based on that, download the appropriate package, install it, and then… check again with:
wkhtmltopdf --version.

Thanks for making it clear what to do.

I discovered wkhtmltopdf is not installed.
I see X86_64 architecture
Synology Package Centre contains a “manual install”. I went to github to find one- there are several, but none of the x86-64 downloads work - getting error “invalid file format”.

Found “wkhtmltox-0.12.6-3.archlinux-x86_64.pkg.tar.xz” but nothing inside the package howto install on a Synology server. Found https://community.synology.com/enu/forum/17/post/84508 from cyco Dec2016 that helps, but no result for me (it is for an PDF generator Odoo8). I think I am missing a libXrender.so.1 library. Where can I get one with install instructions?