Item8651: Fails to generate PDF (view: unlink0: pdf is gone already)

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: GenPDFWebkitPlugin
Branches:
Reported By: HenningPerl
Waiting For:
Last Change By: HenningPerl
I wanted to set up the GenPDFWebkitPlugin but when I tried to generate a PDF (adding ?contenttype=application/pdf) I get the following error on screen:
Foswiki detected an internal error - please check your Foswiki logs and webserver logs for more information.

exec failed: No such file or directory

And I get the following error show on the apache log:
[DATE] [error] [client xxx.xxx.xxx.xxx] [DATE] view: unlink0: /tmp/K2uyKXuljY.pdf is gone already at /usr/lib/perl5/vendor_perl/5.8.8/CGI/Carp.pm line 356
[DATE] [error] [client xxx.xxx.xxx.xxx] [DATE] view: unlink0: /tmp/L19ay9LjnF.html is gone already at /usr/lib/perl5/vendor_perl/5.8.8/CGI/Carp.pm line 356
[DATE] [error] [client xxx.xxx.xxx.xxx] exec failed: No such file or directory at /path/to/foswiki/lib/Foswiki/Sandbox.pm line 471.

What is wrong?

-- HenningPerl - 02 Mar 2010

Please fire up configure and go to the webkit section. Review the {WebKitCmd}. Most probably it does not point to the correct wkhtmltopdf binary. That's why it says "no such file or directory".

-- MichaelDaum - 03 Mar 2010

You might also find the How do I debug calls to third-party programs? FAQ helpful.

-- AndrewJones - 03 Mar 2010

Yes, thank you, I figured that the WebKitCmd was indeed not set up right. Works very well now, thanks!

-- HenningPerl - 03 Mar 2010
 

ItemTemplate edit

Summary Fails to generate PDF (view: unlink0: pdf is gone already)
ReportedBy HenningPerl
Codebase
SVN Range
AppliesTo Extension
Component GenPDFWebkitPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn
Topic revision: r4 - 03 Mar 2010, HenningPerl
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy