Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Using PDF::WebKit

by Anneq (Vicar)
on May 18, 2013 at 18:33 UTC ( #1034122=note: print w/ replies, xml ) Need Help??


in reply to Using PDF::WebKit

Are your @INC paths and environment variables at the command line, the same as through another script? Try putting this at the top of your script (before using Win32::Process::Create) and run in both scenarios:

use strict; use warnings; $|=1; # Buffering BEGIN { print "#### Environment Variables ####\n"; foreach (keys(%ENV)) { print "$_ = $ENV{$_}\n"; } print "#### \@INC ####\n"; foreach(@INC) { print "$_\n"; } die "#### And there you go. Your info should be displayed below: +####\n"; }

Anne


Comment on Re: Using PDF::WebKit
Download Code
Re^2: Using PDF::WebKit
by halweitz (Novice) on May 18, 2013 at 23:06 UTC

    Ok, here is the answer: The configure subroutine should have a line that looks like this:

    $_->wkhtmltopdf('c:\\Program Files (x86)\\wkhtmltopdf\\wkhtmltopdf.exe');

    The last wkhtmltopdf.exe was left off. The documentation says path/to/wkhtmltopdf and I didn't include the actual executable name. Oops. Thanks for all the suggestions.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1034122]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2014-09-17 09:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (70 votes), past polls