|
hi
I am getting the below error, while running the script, which was given in the website.
Program
=========
use PDF::Haru;
# create new document
my $pdf = PDF::Haru::New();
# add page
my $page = $pdf->AddPage();
# set page size and orientation
$page->SetSize(HPDF_PAGE_SIZE_A4, HPDF_PAGE_PORTRAIT);
my $font = $pdf->GetFont("Helvetica", "StandardEncoding");
$page->BeginText();
$page->SetFontAndSize($font, 20);
$page->TextOut(40, 781, "text");
$page->EndText();
$page->Rectangle (30, 30, $page->GetWidth() - 60, $page->GetHeight() - 60);
$page->Stroke();
# save the document to a file
$pdf->SaveToFile("filename.pdf");
# cleanup
$pdf->Free();
Error
======
Can't locate loadable object for module PDF::Haru in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at test4.pl line 2
Compilation failed in require at test4.pl line 2.
BEGIN failed--compilation aborted at test4.pl line 2.
|