1
claytons
news module
  • 2010/6/21 18:17

  • claytons

  • Just popping in

  • Posts: 1

  • Since: 2010/4/13


hi all,
ive installed the news module, all working fine, except that when I view a story, The "make into PDF" option when clicked returns this

TCPDF error: Could not include font definition file

can anyone help?

many thanks
clayton

2
culex
Re: news module
  • 2010/6/21 18:44

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


I had a few issues with this a while ago, and amongs some of the fixes was this missing font error.

Try to look for 2 lines like these
$pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN''PDF_FONT_SIZE_MAIN));
$pdf->setFooterFont(Array(PDF_FONT_NAME_DATA''PDF_FONT_SIZE_DATA));



change these 2 line to
$pdf->SetFont('FreeSans'''11);
$pdf->setHeaderFont(Array('FreeSans'''10));
$pdf->setFooterFont(Array('FreeSans'''10));
Programming is like sex:
One mistake and you have to support it for the rest of your life.

3
culex
Re: news module
  • 2010/6/22 11:36

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


Also you can see this thread. This is dealing with errors in pdf news 1.63

Click here
Programming is like sex:
One mistake and you have to support it for the rest of your life.

Login

Who's Online

217 user(s) are online (172 user(s) are browsing Support Forums)


Members: 0


Guests: 217


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits