Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Using PDF::WebKit

by Anneq (Vicar)
on May 18, 2013 at 18:33 UTC ( [id://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

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1034122]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-19 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found