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:

![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=cpuhwadaf7fb28c954580bc4e58c95ab94deb)

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.

After the installation of the libraries located above, the generation should work.

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:

![](https://desk.zoho.com/DocsDisplay?zgId=716875472&mode=inline&blockId=cpuhw6114e875c3834e75be8016429c46d6d2)

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>