PHP Classes

not working

Recommend this page to a friend!

      Verbo Magia  >  All threads  >  not working  >  (Un) Subscribe thread alerts  
Subject:not working
Summary:missing fonts
Messages:25
Author:synthetron
Date:2015-10-26 13:38:55
 
  1 - 10   11 - 20   21 - 25  

  1. not working   Reply   Report abuse  
Picture of synthetron synthetron - 2015-10-26 13:38:55
( ! ) Warning: include(font/helveticai.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\welcome\phptools\verbopdf\fpdf.php on line 550
Call Stack
# Time Memory Function Location
1 0.0030 924360 {main}( ) ..\genBook.php:0
2 0.0097 1850736 PDF->CreaIndex( ) ..\genBook.php:536
3 0.0126 1920464 FPDF->SetFont( ) ..\genBook.php:248

( ! ) Warning: include() [function.include]: Failed opening 'font/helveticai.php' for inclusion (include_path='.;C:\php\pear') in C:\wamp\www\welcome\phptools\verbopdf\fpdf.php on line 550
Call Stack
# Time Memory Function Location
1 0.0030 924360 {main}( ) ..\genBook.php:0
2 0.0097 1850736 PDF->CreaIndex( ) ..\genBook.php:536
3 0.0126 1920464 FPDF->SetFont( ) ..\genBook.php:248
FPDF error: Could not include font metric file

  2. Re: not working   Reply   Report abuse  
Picture of Luciano Salvino Luciano Salvino - 2015-10-26 15:33:05 - In reply to message 1 from synthetron
Hi!

sorry I forgot to add one auxiliary script =/

Now you can download the package again

Regards

  3. Re: not working   Reply   Report abuse  
Picture of synthetron synthetron - 2015-10-26 15:52:55 - In reply to message 2 from Luciano Salvino
nice now it works!

can you make Calibri too?

  4. Re: not working   Reply   Report abuse  
Picture of synthetron synthetron - 2015-10-26 16:10:41 - In reply to message 3 from synthetron
ld it be better if you put all above
$tapp = "myob";

in the other php?

  5. Re: not working   Reply   Report abuse  
Picture of synthetron synthetron - 2015-10-26 16:31:19 - In reply to message 4 from synthetron
and put into creaindex parameters : t_created



function CreaIndex($title,$author,$chapters,$subchap,$subitem,$text,$lang,$num_type){

global $font,$siteUrl,$sitename;

$ftype = '';

if($lang=="En") {
$t_by = "by";
$t_created = "This publication was created by Synthetron";
$t_index = "Index";


same for first page items


$this->SetXY(10,220);
$this->CellFitScale(95,17,'Synth',0,1,'R',0,"$siteUrl");

$rgb = $this->hex2rgb('006e01');
$this->SetTextColor($rgb['r'],$rgb['g'],$rgb['b']);

$this->SetXY(105,220);
$this->CellFitScale(85,17,'etron',0,1,'L',0,"$siteUrl");

  6. Re: not working   Reply   Report abuse  
Picture of Luciano Salvino Luciano Salvino - 2015-10-26 17:45:21 - In reply to message 3 from synthetron
Yes, you can use any font, but you have to create the {font}.z binary to use it. See http://fpdf.org/?lang=en and specifically on http://fpdf.org/en/tutorial/tuto7.htm
Unfortunatelly phpclasses don't let authors to upload binary files, because of that I decided to use arial font

Regards

  7. Re: not working   Reply   Report abuse  
Picture of Luciano Salvino Luciano Salvino - 2015-10-26 17:56:26 - In reply to message 6 from Luciano Salvino
Well, I created this script 7 years ago. I thought that it was lost but 1 month ago looking for another script in my "old stuff" folder I found it and decided to share it exactly as it was.

  8. Re: not working   Reply   Report abuse  
Picture of synthetron synthetron - 2015-10-26 20:53:59 - In reply to message 7 from Luciano Salvino
its a nice start

to make reports and stuff

how you do tables?

  9. Re: not working   Reply   Report abuse  
Picture of Luciano Salvino Luciano Salvino - 2015-10-26 23:31:12 - In reply to message 8 from synthetron
I'm uploading another class call "PDF Table" doing that. Because is quite complicated explaining here
I hope it will be ready to download tomorrow

  10. Re: not working   Reply   Report abuse  
Picture of synthetron synthetron - 2015-10-27 13:05:36 - In reply to message 9 from Luciano Salvino
got other idea

making invoices from database or xlsx

but then we need also to embed logo jpg

 
  1 - 10   11 - 20   21 - 25