Skip to content

easyCell and AddFont #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
samuelvincent opened this issue Dec 16, 2020 · 4 comments
Open

easyCell and AddFont #27

samuelvincent opened this issue Dec 16, 2020 · 4 comments

Comments

@samuelvincent
Copy link

samuelvincent commented Dec 16, 2020

Hello !
I have a problem with the easycell command which refuses to display anything with my character set whereas with the classic fpdf command Cell works.
apache response error 500...
do you have any idea why?

this is my script :

<?php
include 'fpdf/fpdf.php';
include 'exfpdf.php';
include 'easyTable.php';
define('FPDF_FONTPATH','fpdf/font');

$pdf = new exFPDF();
$pdf->AddFont('Lato-Light','R','Lato-Light.php');
$pdf->AddPage();
$pdf->SetFont('Lato-Light','R',35);

$pdf->Cell(0,10,'Changez de police avec FPDF 3!');

$write=new easyTable($pdf, 1, 'align:C; font-size:15; width:100%');
$write->easyCell('CONTRAT INDIVIDUEL DE FORMATION PROFESSIONNELLE CONTINUE (Article L6353-3 du code du travail)');
$write->printRow();
$write->endTable(1);

$pdf->Output();
?>

thanks a lot!

best regards

@mdes
Copy link

mdes commented Dec 16, 2020

Merci d'utiliser la fonction d'insertion de code pour mettre des exemples de code dans la question. Il s'agit des signes inférieur et supérieur : < > Cela rendra le code bien plus lisible, avec des sauts de ligne.

@mdes
Copy link

mdes commented Dec 16, 2020

Hi,
Did you generate the file Lato-Light.php?

@samuelvincent
Copy link
Author

samuelvincent commented Dec 16, 2020 via email

@samuelvincent
Copy link
Author

samuelvincent commented Dec 16, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants