createPdf error

11 posts by 4 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: April 28, 2012   (RSS)

By rjbathgate - March 8, 2011

Hi,

Through the CreatePDF plugin tester, I receive the following:

----
Failed! Test running PDF conversion program on server

Testing pdf binary with command: /var/www/vhosts/xxxxx/httpdocs/cmsAdmin/plugins/createPDF/wkhtmltopdf/wkhtmltopdf-amd64 -V
Result: 0 bytes returned
Error: No output returned from command! (Exit code: 11)
----

All other tests work ok, but the Visual Output is blank also.

And when trying to run a createPDF_fromOutput, the page just loads blank.

I've installed all the libraries as per readme.txt, and am using v1.02.

Any ideas?!

Thanks very much
Rob

Re: [rjbathgate] createPdf error

By Dave - March 9, 2011

Hi Rob,

I've got your email about this so I'll do some research and get back to you. Thanks!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] createPdf error

By Dave - March 16, 2011

Just a follow up on this one. Re-uploading the /cmsAdmin/plugins/createPDF/wkhtmltopdf/ folder fixed it!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] createPdf error

By concrete - May 20, 2011

Hi Dave I'm having the same exact issue. I reluploaded the directory but i still have the same issue.

Re: [concrete] createPdf error

By Dave - May 20, 2011

Hi Darrell,

Who is the host? If you want to email me FTP and CMS details I could try and get it going for you.

Note: Email, don't post login details to the forum.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] createPdf error

By concrete - May 20, 2011

Host is mediatemple.

I just sent over the details via email

Re: [concrete] createPdf error

By Dave - May 23, 2011

Hi Darrell,

I re-uploaded createPDF/wkhtmltopdf/wkhtmltopdf-i386 and set the permissions to 755.

Now we're getting a little further but we're getting some errors.

Do you have root access (ssh/telnet) on this server or is it shared hosting?

We're currently generating PDFs but we need to get some fonts installed. See: admin.php?_pluginName=createPDF&_pluginAction=test

To get the fonts installed we need these commands run on the server (from the createPDF readme):
yum install xorg-x11-fonts-Type1
yum install msttcorefonts

Let me know if you have root access. Otherwise you'll need to email your host and ask them.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] createPdf error

By Toledoh - April 27, 2012

I've got a similar situation. I've re-uploaded the files, and checked permissions... but no luck. Tech support are very helpful on this server, but I'm not sure what to ask them to do as I'm not getting any PDF display as yet...



Passed! Run external program on server

Testing shell_exec() with command: pwd
Result: /home/murraysb/public_html/cmsAdmin

Failed! Test running PDF conversion program on server

Testing pdf binary with command: /home/murraysb/public_html/cmsAdmin/plugins/createPDF/wkhtmltopdf/wkhtmltopdf-amd64 -V
Result: 0 bytes returned
Error: No output returned from command! (Exit code: 11)

Passed! Test downloading content from remote URL

Downloading content from url with: getPage('http://www.google.com/');
Result: HTTP status code 302

Failed! Test converting a web page to a PDF

Created PDF with: HTML from: http://www.google.com/;
Result: 0 byte PDF returned
Error: No pdf output was returned!
Cheers,

Tim (toledoh.com.au)

Re: [Toledoh] createPdf error

By Dave - April 27, 2012

Hi Tim,

I've released an updated Create PDF plugin here:
http://www.interactivetools.com/add-ons/detail.php?Create-PDF-1017

Can you give it a try and see if it helps resolve the problem? If not email me direct and I'll take a look. Thanks!
Dave Edis - Senior Developer
interactivetools.com