-
Notifications
You must be signed in to change notification settings - Fork 48
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
Comments
|
Hi, |
Hi!
excuse me for the badly laid out code, this is the first time I use GitHub
This is my code :
<?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();
?>
as is the apache server returns a 500 error
if I remove the line from the easyCell tag the script works.
of course it does not display the text of the tag, but it does display that of the Cell tag :
<?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->printRow();
$write->endTable(1);
$pdf->Output();
?>
the lato font files have been generated from the fpdf website and it works fine with the Cell tag
Does that mean anything to you this problem?
Thanks a lot for your help!
Best regards
71, rue de la petite bapaume
Bâtiment A, Appartement 2106
95120 ERMONT
+33 07 49 46 30 03
samuelvincent@free.fr
… Le 16 déc. 2020 à 09:58, mdes ***@***.***> a écrit :
Hi,
Did you generate the file Lato-Light.php?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#27 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAWSZD7VN7X3R5M3MZCCPTDSVBZFHANCNFSM4U5GTIHA>.
|
I have updated my code so that it displays correctly. sorry for the inconvenience.
… Le 16 déc. 2020 à 09:56, mdes ***@***.***> a écrit :
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 : < > Celle rendra le code bien plus lisible, avec des sauts de ligne.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#27 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAWSZD2CEXEIMG6VNW6ARVLSVBY2XANCNFSM4U5GTIHA>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 :
thanks a lot!
best regards
The text was updated successfully, but these errors were encountered: