Project

General

Profile

undefined method myPDF::setSourceFile() ?

Added by James Ormerod over 10 years ago

Hi,

I am using the advanced tables class however when trying to import a pdf page i get undefined method myPDF::setSourceFile() ?


$pageCount = $oPdf->setSourceFile("invoice-footerpage.pdf");
$tplIdx = $oPdf->importPage(1);

$oPdf->addPage();
$oPdf->useTemplate($tplIdx, 10, 10, 90);

$oPdf->Output();

Why does this not work / how do I get around the problem?

Regards,

James


Replies (1)

RE: undefined method myPDF::setSourceFile() ? - Added by Andrei Bintintan over 10 years ago

What addon are you using?

I don't think setSourceFile is a native method of fpdf or tcpdf.
Maybe you try to use FPDI but your object is not correctly initialized?

    (1-1/1)