<?php
// 1. Include the FPDF library
require_once('fpdf/fpdf.php');



// 2. Create a new FPDF instance
$pdf = new FPDF();

// 3. Add a new page
$pdf->AddPage();

// 4. Set font (optional, for text)
$pdf->SetFont('Arial', 'B', 16);
$pdf->Cell(40, 10, 'Image Example', 0, 1); // Add a title

// 5. Add the image
// Parameters: filename, x-position, y-position, width (optional), height (optional)
$pdf->Image('ISRUKAL.jpg', 10, 30, 50, 50); // Example: 10mm from left, 30mm from top, 100mm wide 
$pdf->Image('ISRUKAL.jpg', 10, 70, 50, 50); // Example: 10mm from left, 30mm from top, 100mm wide 


$pdf->Output('my_image_document.pdf', 'F');


// 6. Output the PDF to a file
// 'F' sends the PDF to a file (downloads if in browser context, saves if on server)
$pdf->Output('my_image_document.pdf', 'F');

// If you want to display in browser, use 'I' (Inline)
// $pdf->Output('my_image_document.pdf', 'I');
?>



