I see, tcpdf, so can I remove fpdf?
AFAIK nothing in Core actually uses those libs in 1.9 - so if you don't have any 3rd party modules using them, you could potentially remove them both!
there are a couple of bugs in the tracker about this, but fpdf is being removed from core in 2.0, and I think Chardelle has converted the Certificate module for 2.0 to only use tcpdf.
hope that helps!
there are a couple of bugs in the tracker about this, but fpdf is being removed from core in 2.0, and I think Chardelle has converted the Certificate module for 2.0 to only use tcpdf.
hope that helps!
Ok, thanks, so where can I find info to convert fpdf use into tcpdf?
Hi Ger,
as Dan mentions, fpdf has been removed - see MDL-15055 and the linked issues for more info. In your code, you should use the Moodle PDF wrapper library lib/pdflib.php, however. TCPDF was written so it copies the API of fpdf, the upgrade should be relatively easy.
d.
as Dan mentions, fpdf has been removed - see MDL-15055 and the linked issues for more info. In your code, you should use the Moodle PDF wrapper library lib/pdflib.php, however. TCPDF was written so it copies the API of fpdf, the upgrade should be relatively easy.
d.
Ok, thanks for the pdflib.php.
I get some output. I changed the extend class part I had for header and footer in fpdf into:
class MYPDF extends TCPDF { ..}
Now the body-text looks OK, only the header and footer bar I created in fpdf style collapsed.
I get some output. I changed the extend class part I had for header and footer in fpdf into:
class MYPDF extends TCPDF { ..}
Now the body-text looks OK, only the header and footer bar I created in fpdf style collapsed.