Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require('./fpdf/fpdf.php');
- $pdf = new FPDF();
- $pdf->AddPage();
- $pdf->SetFont('Arial','B',16);
- $pdf->SetY(50);
- $pdf->SetX(80);
- $pdf->Cell(0,5,'Coordinates: X:'.$pdf->GetX().'/Y:'.$pdf->GetY(), 1);
- $pdf->SetX(80);
- $pdf->SetY(80);
- $pdf->Cell(0,5,'Coordinates: X:'.$pdf->GetX().'/Y:'.$pdf->GetY(), 1);
- $pdf->Output();
- ?>
- function SetY($y)
- {
- // Set y position and reset x
- $this->x = $this->lMargin;
- if($y>=0)
- $this->y = $y;
- else
- $this->y = $this->h+$y;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement