Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder: Plugins & Add-ons:
createPDF on Free BSD server

 

 


4cdg
User

Jul 28, 2011, 9:42 AM

Post #1 of 3 (2258 views)
Shortcut
createPDF on Free BSD server Can't Post

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


Jason
Staff / Moderator


Jul 29, 2011, 9:54 AM

Post #2 of 3 (2248 views)
Shortcut
Re: [4cdg] createPDF on Free BSD server [In reply to] Can't Post

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 - Programmer 
interactivetools.com

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


4cdg
User

Jul 29, 2011, 10:22 AM

Post #3 of 3 (2246 views)
Shortcut
Re: [Jason] createPDF on Free BSD server [In reply to] Can't Post

I will see if this can be done. Thanks