I wanted to build an awesome place for people to discuss module specific issues, but I don't have any more time for this, and there are much better places to discuss Perl-related issues. I'd recommend asking your question on Stack Overflow or on Perl Monks.
If you are looking for a Perl tutorial or Perl-related news, I hope these links will serve you well.
Posted on 2010-02-16 01:52:25.844803-08 by vinothjaguva
Module is not working
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.
Direct Responses: Write a response