Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Catalog products PDF reports - iso8859-2 problem


Guest

Recommended Posts

Posted

Hello evb,

I have a problem with Catalog products PDF reports (http://addons.oscommerce.com/info/908 )

In instruction to fpdf library is written about generating new fonts.

Ok, I’m using on my site iso-8859-2. I made new fonts and put it in fonts directory (/admin/fonts)

I made Georgia fonts (normal, b, i and bi).

In pdf_catalogue.php I changed all Arial entries (without Arial entries with B, I or BI) from Arial to Georgia, but when I try to generate new raport from admin panel I have an error:

“FPDF error: Undefined font: georgia”

 

How can I fix a problem with generating raport? I think that is a problem with pdf_catalogue.php

With regards

Michal

Posted

And ones more... I made a simple script:

 

<?php

define('FPDF_FONTPATH','font/');

require('pdf_fpdf.php');

$pdf=new FPDF();

$pdf->Open();

$pdf->AddPage();

$pdf->AddFont('georgia','','georgia.php');

$pdf->SetFont('georgia','',10);

$pdf->Text(10,10, 'NORMAL Test Polish Characters: ±¶ćę󳿼ł'); // (this is polish iso-8859-2 encoding)

$pdf->Output();

?>

And this is working!

It generate a pdf document

Ofcourse in tab ‘Fonts’ in ‘Document poperties’ of Acrobat Reader I see “Georgia fonts embedded” and this is ok

 

With regards

Michal

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...