PDF generation displays message: 'Not Found'

PDF generation displays message: 'Not Found'

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.

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:





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




    • Related Articles

    • Configuring Generation of PDF

            1- For we set the PDF to be generated by the application, we must select the folder item Export in the Grid as shown in the image below:       2- You can edit this session, a number of parameters to generate the format PDF  our GRID. Note that ...
    • Execution of reCaptcha Displays Error - MacOS

      If the error below is displayed when submitting the form / control with reCaptcha, perform the following steps: Warning: file_get_contents (): SSL operation failed with code 1. OpenSSL Error messages: error: 14090086: SSL routines: ...
    • Open PDF in the Browser

      Create an application of the type PDF In the configuration section we select the following option:
    • Show Question Message with SweetAlert - sc_alert

      To use the new SweetAlert functionality and display a question message, the following parameters must be taken into accoun:   When executing it would look like this:
    • sc_alert - Show Error Message with SweetAlert (error)

      To use the new SweetAlert functionality and display an error message, the following parameters must be taken into account:   When executing it would look like this: