PHP hinzufügen von text mithilfe von FPDF

sehe ich diese demo
http://www.setasign.com/products/fpdi/demos/simple-demo/

<?php
require_once('fpdf.php');
require_once('fpdi.php');

//initiate FPDI
$pdf = new FPDI();
//add a page
$pdf->AddPage();
//set the source file
$pdf->setSourceFile("PdfDocument.pdf");
//import page 1
$tplIdx = $pdf->importPage(1);
//use the imported page and place it at point 10,10 with a width of 100 mm
$pdf->useTemplate($tplIdx, 10, 10, 100);

//now write some text above the imported page
$pdf->SetFont('Helvetica');
$pdf->SetTextColor(255, 0, 0);
$pdf->SetXY(30, 30);
$pdf->Write(0, 'This is just a simple text');

$pdf->Output();

möchte ich hinzufügen, versuchen Sie 3 text und verschiedene coordinat (X,Y)

ich versuche

$pdf->Write(142.5,170 'This is just a simple text');
$pdf->Write(118,175, 'This is just a simple text');
$pdf->Write(167.5,175, 'This is just a simple text');

und ich lösche code

$pdf->SetXY(30, 30);

nicht arbeiten, ich bin verwirrt 🙁

InformationsquelleAutor Ridwan Syah | 2014-10-27
Schreibe einen Kommentar