pasterdress.blogg.se

Scriptcase using blocks in a grid
Scriptcase using blocks in a grid












scriptcase using blocks in a grid
  1. Scriptcase using blocks in a grid pdf#
  2. Scriptcase using blocks in a grid install#
  3. Scriptcase using blocks in a grid full#
  4. Scriptcase using blocks in a grid download#

This can be done by connecting to the server via SSH, or by using an FTP client such as FileZilla that supports setting file permissions. allow all read/write/execute permissions for everyone.

Scriptcase using blocks in a grid pdf#

If you still cannot export to PDF on Scriptcase v8 despite setting correct value for the “PDF Server IP” field, try to set the permissions of the wkhtmltopdf utility to 777, e.g. The wkhtmltopdf tool is located in the _lib/prod/third/wkhtmltopdf folder, with different versions for different operating systems (Linux, OS X, Windows) and helps remove the need for Java, which may not be possible for users on shared web hosting services. wkhtmltopdf-amd64 -page-size Letter -orientation Landscape -outline-depth 0 The export command now instead calls a tool named wkhtmltopdf directly to perform the conversion.

scriptcase using blocks in a grid

If you are using Scriptcase v8, you will notice that the Java-related fields are removed from the configuration screen:

Scriptcase using blocks in a grid full#

You might need to field in the full path to Java for the “Path for Java binary” and the “Java Binary” fields, although in my case I can just leave them as default since Java is in the system path. If it still doesn’t work, try to run the export command directly on your server to find out the exact error message. For example, if the deployed URL is, enter into the “PDF Server IP” field. Contrary to what the name of the field may tell you, this has to be the root address of the server where the site is deployed, which can be an IP address (for test servers), or a domain name (for production servers). If the URL is not correct, check the “PDF Server IP” field in the Scriptcase configuration settings.

Scriptcase using blocks in a grid download#

) and make sure that you can download from it. If it doesn’t, check the URL that was passed in to pd4ml.jar (e.g. Once installation is completed, try again – PDF export should work.

Scriptcase using blocks in a grid install#

We proceed by installing the default Java package that comes with the OS: sudo yum install java In our case, just the JRE is needed to execute the Scriptcase jar program. Take note that the following command is just an example, you might need to customize it based on your further needs, for example which version of Java needs to be installed and whether you will just need the Java Runtime Environment (JRE) or the full development kit (JDK). The conversion failed simply because Java was not installed on the server. When the user requests to export a grid to PDF, Scriptcase first generates the corresponding HTML document for the grid, then executes pd4ml.jar with the help of Java to convert the HTML file to PDF. home/example/_lib/tmp/sc_pdf_20151208170941_771_grid.pdfĮxecuting this command by connecting to the web host via SSH, which is a CentOS 6 VPS, result in the following error: -bash: java: command not foundĪt this point it is clear what caused the issue. LETTER -orientation PORTRAIT -permissions 2076 > Filenames and related information have been removed for security reasons. log file contains the following command, which presumably was used to generate the PDF file. The following is the screenshot of the configuration settings for Scriptcase v6:Ĭhecking the temporary folder reveals the following files: The full path to the log folder is also indicated in the “Configure production environment” menu after you log in to the Scriptcase production environment, by appending /_lib/prod to the site address. To investigate this problem, I checked the Scriptcase temporary folder, which is usually at the /_lib/tmp subdirectory. The web user interface did not show any useful messages, other than “PDF generation finished.”, and exporting to all other formats still worked well. However, recently in one of my projects, I came across an issue where the exported PDF file was either empty or had very small size such as 37 bytes which contained only the PDF header and was therefore corrupted. If you often use Scriptcase to quickly develop CRUD applications in PHP, you must definitely have used the Export feature from a Grid application, and most likely find it very useful as it can export in many different formats such as Office, PDF or event XML:įor most users, the export usually works out of the box and requires little configuration.














Scriptcase using blocks in a grid