#!/usr/bin/perl use strict; use warnings; use WKHTMLTOPDF; my $filename='test.html'; my $path='/temp/'; my $inputfile="$path$filename"; my $outputfilename='test'; my $ext='.pdf'; my $outputfile="$path$outputfilename$ext"; my $pdf = new WKHTMLTOPDF; my $path1='/Strawberry/wkhtmltopdf/bin/'; $pdf->bin_name($path1); $pdf->_input_file('/temp/TEST.html'); $pdf->_output_file('/temp/TEST.pdf'); $pdf->_input_file($inputfile); $pdf->_output_file($outputfile); $pdf->grayscale(1); $pdf->generate; couldn't find command '/Strawberry/wkhtmltopdf/bin/' at C:/Strawberry/perl/site/lib/MooseX/Role/Cmd.pm line 117. MooseX::Role::Cmd::run(WKHTMLTOPDF=HASH(0x6d59d0), "/temp/test.html", "/temp/test.pdf") called at C:/Strawberry/perl/site/lib/WKHTMLTOPDF.pm line 645 WKHTMLTOPDF::generate(WKHTMLTOPDF=HASH(0x6d59d0)) called at htmlpdf.pl line 20