Follow the step by step to correct the error "Not Found" when executing the PDF generation.
First step:
Navigate to the tmp folder in your publication folder.
E.g: /publication folder/_lib/tmp
Open the .log file that was generated with the name of your PDF.
Save your content.
E.g:
Second Step:
Here you will execute the commands according to your operating system.
LINUX:
Open your server's terminal and type: Linux x86 cd /deployment_folder/_lib/prod/third/wkhtmltopdf/linux-i386 Linux x64 cd /deployment_folder/_lib/prod/third/wkhtmltopdf/linux-amd64 Choose according to your version of Linux. |
WINDOWS:
Open your server's terminal and type: cd /pasta_publicacao/_lib/prod/third/wkhtmltopdf/win |
On windows there may be a lack of redistributable c ++ libraries 2013 and 2015 x86 and x64 installed on the server.
MACOSX:
Open your server's terminal and type: cd /pasta_publicacao/_lib/prod/third/wkhtmltopdf/OSX |
Third Step:
Now, inside the folder we arrived at the second step,
Ex: "/deployment_folder/_lib/prod/third/wkhtmltopdf/folder_OS",
Run the command that was saved in step one.
E.g:
Fourth Step:
An error will be displayed, which says that it is the lack of a library in your operating system.
Perform the installation of the missing library and try to perform the PDF generation again.
If the message "Segmentation fault" is displayed during the fourth step, follow the procedures below:
This problem occurs because the binary file of the wkhtmltopdf library "wkhtmltopdf-amd64" has been corrupted.
To solve, just rename this file with the command:
"mv wkhtmltopdf-amd64 wkhtmltopdf-amd64_bkp"
And put in the _lib / prod / third / wkhtmltopdf / folder_OS / directory the binary file that corresponds to the version of your publication.
If you use Scriptcase version 9 or higher, the binary file can be downloaded through the link below:
Binary file: https://wkhtmltopdf.org/downloads.html