createPDF on Free BSD server

3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: July 29, 2011   (RSS)

By 4cdg - July 28, 2011

I have purchased unlimited license for createPDF and have never been able to get it to function correctly. Server admin says it is because we run FreeBSD and this was not designed for that. I am lost.

Here is the server info from admin in cms
Operating System FreeBSD 8.2-RELEASE
Web Server Apache
Database Server MySQL v5.1.58 (Max Connections: 151)
PHP Version PHP v5.3.6

here is the results of testing server requirements for createPDF

Passed! Run external program on server
Testing shell_exec() with command: pwd
Result: /usr/local/www/test.stoddardmls.com/cmsAdmin

Failed! Test running PDF conversion program on server
Testing pdf binary with command: /usr/local/www/test.stoddardmls.com/cmsAdmin/plugins/createPDF/wkhtmltopdf/wkhtmltopdf-i386 -V
Result: 0 bytes returned
Error: No output returned from command! (Exit code: 2)

Passed! Test downloading content from remote URL
Downloading content from url with: getPage('http://www.google.com/');
Result: HTTP status code 200

Passed! Test converting a web page to a PDF
Created PDF with: HTML from: http://www.google.com/;
Result: 83 byte PDF returned

Visually review PDF output
Visually inspect the PDF below, correct any error message, then make sure the graphics and fonts display as expected:

/usr/local/www/test.stoddardmls.com/cmsAdmin/plugins/createPDF/wkhtmltopdf/wkhtmltopdf-i386: 1: Syntax error: "(" unexpected

-----------------------

We need some direction on how to make this function correctly

Re: [4cdg] createPDF on Free BSD server

By Jason - July 29, 2011

Hi,

What you would need to do is have your host install the wkhtmltopdf libraries on your server. These are free libraries that the plugin uses and can be found in plugins/createPDF/wkhtmltopdf.

If the host is unwilling or unable to install these libraries for you, another option would be to set up a proxy. This is where you would have an installation of CMS Builder running on a different server and running createPDF. You can then set up your plugin on your current server to send all createPDF requests to the plugin on the other server. There is information on how to set this up in the readme file that comes with the plugin.

Hope this helps
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/