2017 © Pedro Peláez
 

library fpdfimage

FPDF Image

image

martins-smb/fpdfimage

FPDF Image

  • Saturday, August 29, 2015
  • by carlosmartins
  • Repository
  • 1 Watchers
  • 0 Stars
  • 42 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 2 % Grown

The README.md

FPDF Image

Original written by http://fpdf.de/downloads/addons/45/, (*1)

itbz/fpdf Compatible

I have made some changes to make mem_image.php compatible for itbz/fpdf., (*2)

Example Usage


$pdf = new FPDFImage("L","mm","A4"); $pdf->AddPage(); $pdf->SetFont('arial','B',10); $pdf->Cell(288,5,'Example',0,1,'C'); $pdf->Output("file.pdf","I");

Example usage with davefx/phplot


$pdf = new FPDFImage("L","mm","A4"); $pdf->AddPage(); $pdf->SetFont('arial','B',10); $pdf->Cell(288,5,'Example',0,1,'C'); $plot = new PHPlot(400, 300); $plot->SetImageBorderType('plain'); $plot->SetPlotType('bars'); $plot->SetDataType('text-data'); $data[0][1] = 10; $data[1][1] = 20; $data[2][1] = 30; $data[0][2] = 20; $data[1][2] = 30; $data[2][2] = 40; $plot->SetDataValues($data); $plot->SetDataColors(array('DarkGreen', 'orange', 'yellow', 'blue', 'cyan', 'magenta', 'brown', 'lavender', 'pink', 'gray', 'red', 'green')); $plot->SetTitle('Example'); $data2 = array("Example 1", "Example 2"); $plot->SetLegend($data2); $plot->SetXTickLabelPos('none'); $plot->SetXTickPos('none'); $plot->SetPrintImage(false); $plot->DrawGraph(); $pdf->GDImage($plot->img,85,90,140); $pdf->Output("file.pdf","I");

The Versions

29/08 2015

dev-master

9999999-dev https://github.com/martins-smb/fpdfimage

FPDF Image

  Sources   Download

no usage restriction

The Requires

 

image fpdfimage